857 |
!= TARGET_NATIVE_ERROR_INTERRUPT_FUNCTION_CALL)) |
!= TARGET_NATIVE_ERROR_INTERRUPT_FUNCTION_CALL)) |
858 |
{ |
{ |
859 |
JCL_ThrowException (env, IO_EXCEPTION, |
JCL_ThrowException (env, IO_EXCEPTION, |
860 |
"Internal error: _javanet_accept(): "); |
TARGET_NATIVE_LAST_ERROR_STRING ()); |
861 |
return; |
return; |
862 |
} |
} |
863 |
} |
} |
1542 |
/* Shutdown input stream of socket. */ |
/* Shutdown input stream of socket. */ |
1543 |
if (shutdown (fd, SHUT_RD) == -1) |
if (shutdown (fd, SHUT_RD) == -1) |
1544 |
{ |
{ |
1545 |
JCL_ThrowException (env, SOCKET_EXCEPTION, |
JCL_ThrowException (env, SOCKET_EXCEPTION, strerror (errno)); |
|
"Can't shutdown input of socket"); |
|
1546 |
return; |
return; |
1547 |
} |
} |
1548 |
} |
} |
1567 |
/* Shutdown output stream of socket. */ |
/* Shutdown output stream of socket. */ |
1568 |
if (shutdown (fd, SHUT_WR) == -1) |
if (shutdown (fd, SHUT_WR) == -1) |
1569 |
{ |
{ |
1570 |
JCL_ThrowException (env, SOCKET_EXCEPTION, |
JCL_ThrowException (env, SOCKET_EXCEPTION, strerror (errno)); |
|
"Can't shutdown output of socket"); |
|
1571 |
return; |
return; |
1572 |
} |
} |
1573 |
} |
} |