@CHIP-RTOS C Library - TCP/IP API
close_bsd
Close a socket. int far close_bsd ( int sd) ; Parameters
sd
- Socket descriptor
Return Value
- 0 on success
-1: Failure, error code is available using
get_socketerror.
Comments
- Closes the socket indicated by sd
and releases all of
its associated resources.
The parameters to close_bsd()
are identical to the parameters of
the BSD4.4 close()
socket function.
If the compilation switch
#define BSD44_SOCKET_API_STYLE
is set as a global define in the user application prior to including the
Beck C-library header files, the closesocket()
call can be used in
BSD 4.4 compatible style with the parameters specified above.
Using this switch the CLIB TCPIP_Socket.H redefines closesocket()
to close_bsd()
.
See Also
RTOS API
- On the first call, this library function invokes a software
interrupt
which modifies the code at the calling site inside your application
program. A direct FAR JMP into the @CHIP-RTOS-x86
implementation for this function is installed so that on
return and on any subsequent calls to this API this
dynamic link reaches the function's
implementation directly.
Supported since or modified in @CHIP-RTOS version-
| SC12 | SC13 | SC11 | SC1x3 | SC2x |
-
| n/a | n/a | n/a | V1.36 | V1.36 |
Supported by @CHIP-RTOS C Library since version
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|