Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 94294

For code which uses the Berkley Sockets API (specified by POSIX, and available on Windows too) to communicate with other processes using a network protocol.

2 votes
Accepted

C++ Socket Part-4

The semantics of using HTTP isn't the same as using a simple socket for exchanging various messages. …
D. Jurcau's user avatar
  • 3,010
3 votes
Accepted

C++ Socket syncronous poll wrapper

Your socket abstraction doesn't offer many features. … std::vector<std::shared_ptr<Socket>> sockets; PollService pollService(500); while (true) { for (auto& socket : pollService.poll(begin(sockets), end(sockets))) { //do something with socket
D. Jurcau's user avatar
  • 3,010
11 votes

C Socket Part-1

One of the issues with TCP sockets is that there's no guarantee that sending N bytes in one go will result in receiving exactly N bytes after one call to read(). I would thus emphasize this by using a …
D. Jurcau's user avatar
  • 3,010
1 vote

Socket client in C using threads

In addition to what others have said: using pointers doesn't force you to manually manage memory. You don't need to allocate a new int (which you never free) just to pass it via pointer to your thre …
D. Jurcau's user avatar
  • 3,010
6 votes
Accepted

Async TCP client/server

The socket notifies you that some bytes have arrived over the wire. …
D. Jurcau's user avatar
  • 3,010