Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] 서버 간 TCP 통신 -> http 통신 변경 #9

Open
WhiteHyun opened this issue Jun 22, 2022 · 0 comments
Open

[FEAT] 서버 간 TCP 통신 -> http 통신 변경 #9

WhiteHyun opened this issue Jun 22, 2022 · 0 comments
Assignees
Labels
기능 새로운 기능 또는 요청
Milestone

Comments

@WhiteHyun
Copy link
Member

WhiteHyun commented Jun 22, 2022

기존 사항에 대한 문제점 / 구현 사항

  • http단에 갈 것 없이 TCP 프로토콜을 이용하여 데이터를 송수신할 계획을 세웠으나 Swift는 소켓 프로그래밍에 대한 정보가 너무 부족하다.
  • Swift에서는 강력한 API인 URLSessionTask 메서드가 존재한다.

솔루션 설명

  • 현재 서버는 TCP 통신으로 이루어져있고, http로 통신하기위한 header를 추가로 작성 해야한다.
  • header는 naver에서 응답한 패킷 정보를 기준으로 작성할 예정이다. 아래는 와이어샤크로 naver.com을 요청했을 때 응답받은 패킷 데이터이다.
    image

계획 수립

  • GET 요청으로 할 것, 아닐 시 Method Not Allowed 상태코드[1]
  • 요청 정보는 헤더에 추가하여 전달할 것[2]
  • 관련 문서는 repository wiki에 적어둘 것

추가 질의사항

  • 없음

Reference

  1. HTTP 상태 코드 - HTTP | MDN
  2. HTTP 메시지 - HTTP | MDN
@WhiteHyun WhiteHyun added the 기능 새로운 기능 또는 요청 label Jun 22, 2022
@WhiteHyun WhiteHyun added this to the Deadline milestone Jun 22, 2022
@WhiteHyun WhiteHyun self-assigned this Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
기능 새로운 기능 또는 요청
Projects
No open projects
Development

No branches or pull requests

1 participant