반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 소켓
- HTTP
- 수학
- TCP
- 레벨 1
- dfs
- 자바스크립트
- 문자열
- socket
- 타입스크립트
- ip
- 타입 챌린지
- Crawling
- 프로그래머스
- 프로그래머스 레벨 2
- 크롤링
- typescript
- 그래프
- Algorithm
- dp
- 백준
- javascript
- BFS
- Node.js
- 쉬운 문제
- HTTP 완벽 가이드
- type challenge
- 알고리즘
- 가천대
- Nestjs
Archives
- Today
- Total
목록htons (1)
kakasoo

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 #include #include void ErrorHandling(char* message); int main(int argc, char argv[]) { WSADATA wsaData; unsigned short host_port = 0x1234; unsigned short net_port = htons(host_port); // h to n (short), 호스트에서 네트워크로, short 형. unsigned long host_addr = 0x12345678; unsigned long net_addr = htonl(host_addr); // h to n (long), 호스트에서 네트워..
프로그래밍/네트워크
2020. 7. 15. 14:23