MCPcopy Create free account
hub / github.com/ReadyTalk/avian / close_input

Function close_input

classpath/sockets.cpp:176–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void close_input(JNIEnv* e, SOCKET sock)
177{
178 if (SOCKET_ERROR == ::shutdown(sock, SD_RECEIVE)) {
179 int errcode = last_socket_error();
180 if (errcode != ENOTCONN) {
181 char buf[255];
182 sprintf(buf, "Can't shutdown the socket. System error: %d", errcode);
183 throwNew(e, "java/io/IOException", buf);
184 }
185 }
186}
187
188void close_output(JNIEnv* e, SOCKET sock)
189{

Callers 1

Calls 2

last_socket_errorFunction · 0.85
throwNewFunction · 0.70

Tested by

no test coverage detected