MCPcopy Create free account
hub / github.com/F-Stack/f-stack / CloseSocket

Method CloseSocket

adapter/micro_thread/mt_connection.cpp:102–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102int UdpShortConn::CloseSocket()
103{
104 if (_osfd < 0)
105 {
106 return 0;
107 }
108
109 close(_osfd);
110 _osfd = -1;
111
112 return 0;
113}
114
115int UdpShortConn::SendData()
116{

Callers

nothing calls this directly

Calls 2

SetOsfdMethod · 0.80
closeFunction · 0.70

Tested by

no test coverage detected