티스토리 뷰

반응형

일단 Modern C++에 대한 소켓 라이브러리를 직접 만들다가, 

아마 누가 구현한 게 Github에 있지 않을까란 생각으로 찾아보았다.

 

Simple, modern, C++ socket library.

오 찾았다. 그런데 아쉬운 건 http/https 와 같은 프로토콜 단계까지 있으면 좋으련만아마도 TCP/IP 단의 소켓 구현까지만 있는 것 같다. 저런 건 curl을 써야 할 듯 curl을 처음부터 쓰면 되지 않느냐 하겠지만 curl은 랩핑이 많이 되어 있어서 소켓 자체를그대로 쓰기엔 좋지 않다. 

 

아래의 설명을 보면 알 수 있다.

---------------------------------------------------------------------------------------------------------------------------------

curl is a tool to transfer data from or to a server, using one of the supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP). The command is designed to work without user interaction.

---------------------------------------------------------------------------------------------------------------------------------

 

https://github.com/fpagliughi/sockpp

 

fpagliughi/sockpp

Modern C++ socket library. Contribute to fpagliughi/sockpp development by creating an account on GitHub.

github.com

 

 

파이썬으로도 라이브러리가 있다. 역시 파이썬

https://pypi.org/project/SockServer/

 

SockServer

Socket Server with ThreadPool

pypi.org

 

이 외에도 굳이 책이 아니라 tcp/ip 소켓 통신에 대해서, raw api에 대해서 잘 정리되어 있는

웹 링크를 가져온다. 

 

https://www.bogotobogo.com/cplusplus/sockets_server_client.php

 

C++ Tutorial: Sockets - Server & Client - 2020

Ph.D. / Golden Gate Ave, San Francisco / Seoul National Univ / Carnegie Mellon / UC Berkeley / DevOps / Deep Learning / Visualization

www.bogotobogo.com

 

친절하게도 우리의 스택오버플로 친구들이 

소켓 관련된, 네트워크 관련된 무수한 친구들을 소개시켜주었다. 그러므로 한번

다 찾아서 보고 코드를 확인해보자. 

https://stackoverflow.com/questions/118945/best-c-c-network-library

 

Best C/C++ Network Library

I haven't done work in C/C++ for a little bit and was just wondering what people's favorite cross platform libraries are to use. I'm looking for something that is a good quick and dirty library as

stackoverflow.com

 

반응형

'일반 CS > Network' 카테고리의 다른 글

와이어샤크 필터링 (1) 필터링 수집 법  (0) 2021.06.17
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/06   »
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
29 30
글 보관함