MCPcopy Create free account
hub / github.com/IronsDu/brynet / SocketSend

Function SocketSend

include/brynet/net/SocketLibFunction.hpp:271–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271static int SocketSend(BrynetSocketFD fd, const char* buffer, int len)
272{
273 int transnum = ::send(fd, buffer, len, 0);
274 if (transnum < 0 && BRYNET_EWOULDBLOCK == BRYNET_ERRNO)
275 {
276 transnum = 0;
277 }
278
279 /* send error if transnum < 0 */
280 return transnum;
281}
282
283static BrynetSocketFD Accept(BrynetSocketFD listenSocket, struct sockaddr* addr, socklen_t* addrLen)
284{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected