MCPcopy Create free account
hub / github.com/crossuo/crossuo / Send

Method Send

external/tracy/common/TracySocket.cpp:148–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148int Socket::Send( const void* _buf, int len )
149{
150 auto buf = (const char*)_buf;
151 assert( m_sock != -1 );
152 auto start = buf;
153 while( len > 0 )
154 {
155 auto ret = send( m_sock, buf, len, MSG_NOSIGNAL );
156 if( ret == -1 ) return -1;
157 len -= ret;
158 buf += ret;
159 }
160 return int( buf - start );
161}
162
163int Socket::GetSendBufSize()
164{

Callers 2

WorkerMethod · 0.45
SendDataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected