MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / SetSocketOption

Method SetSocketOption

UTCP/src/ut_clnt.cpp:2447–2450  ·  view source on GitHub ↗

SetSocketOption() Sets the current value for the socket option associated with the client socket, in any state, and stores the result in optval. Options may exist at multiple protocol levels, but they are always present at the uppermost "socket" level. Options affect socket operations, such as whether an operation blocks or not, the routing of packets, out-of-band dat

Source from the content-addressed store, hash-verified

2445 int - 0 if success otherwise SOCKET_ERROR
2446***********************************************/
2447int CUT_WSClient::SetSocketOption(int option,void *optionValue, int iBufferSize)
2448{
2449 return setsockopt(m_socket,SOL_SOCKET,option,(char *)optionValue, iBufferSize);
2450}
2451
2452/***********************************************************
2453GetSocketOption()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected