The TutSocket* functions are used to work with sockets on a low level. These routines can be useful if you are trying to mix SmartSockets connections and sockets.
TutSocketAccept accept socket connection from client
TutSocketCheck check whether data can be read from or written to socket
T_BOOL TutSocketCheck(socket_fd
,check_mode
,timeout
) T_INT4socket_fd
; T_IO_CHECK_MODEcheck_mode
; T_REAL8timeout
;
TutSocketCreateClientLocal create the client side of a local socket
TutSocketCreateClientTcp create the client side of a TCP/IP socket
TutSocketCreateServerLocal create the server side of a local socket
TutSocketCreateServerTcp create the server side of a TCP/IP socket
TutSocketGetBlockMode determine the block mode of a socket
T_BOOL TutSocketGetBlockMode(socket_fd
,block_mode_return
) T_INT4socket_fd
; T_BOOL *block_mode_return
;
TutSocketRecvAll read multiple times from a socket until all data is received
TutSocketRecvTimeout read data from a socket with a timeout
T_INT4 TutSocketRecvTimeout(socket_fd
,buf
,size
,flags
,timeout
,timeout_reached_return
) T_INT4socket_fd
; T_PTRbuf
; T_INT4size
; T_INT4flags
; T_REAL8timeout
; T_BOOL *timeout_reached_return
;
TutSocketSetBlockMode set the block mode of a socket
TIBCO SmartSockets™ API Quick Reference Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |