Top "Berkeley-sockets" questions

The Berkeley sockets API comprises a library for developing applications in the C programming language that perform inter-process communication, most commonly for communications across a computer network.

Binding Sockets to IPv6 Addresses

I am trying to write a web server that listens on both IPv4 and IPv6 addresses. However, the code that …

c sockets ipv6 ipv4 berkeley-sockets
Very Simple C++ TCP Echo Server

I am new to C++ network programming but have experience with Java sockets etc. I have been trying to write …

c++ sockets networking tcp berkeley-sockets
About recv and the read buffer - C Berkeley Sockets

I am using berkeley sockets and TCP (SOCK_STREAM sockets). The process is: I connect to a remote address. I …

c++ c sockets timeout berkeley-sockets
Dereferencing pointer does break strict anti-aliasing rules using Berkeley sockets

I've got code that looks something like this, where addr is a sockaddr*: struct sockaddr_in *sin = (struct sockaddr_in *) …

c compiler-warnings berkeley-sockets
Reading from a socket until certain character is in buffer

I am trying to read from a socket into a buffer until a certain character is reached using read(fd, …

c sockets berkeley-sockets