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

Function Send

engine/dlib/src/dlib/socket_win32.cpp:505–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503 }
504
505 Result Send(Socket socket, const void* buffer, int length, int* sent_bytes)
506 {
507 *sent_bytes = 0;
508 int s = send(socket, (const char*)buffer, length, 0);
509 if (s < 0)
510 {
511 return NativeToResultCompat(DM_SOCKET_ERRNO);
512 }
513 else
514 {
515 *sent_bytes = s;
516 return RESULT_OK;
517 }
518 }
519
520 Result SendTo(Socket socket, const void* buffer, int length, int* sent_bytes, Address to_addr, uint16_t to_port)
521 {

Callers

nothing calls this directly

Calls 1

NativeToResultCompatFunction · 0.70

Tested by

no test coverage detected