DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Programming with sockets

Sockets-to-XTI conversion

``Table of XTI/Sockets equivalents'' shows some approximate XTI/sockets equivalents. The comment field describes the differences. Where there is no comment, either the functions are the same or there is no equivalent function in one or the other interface.

Table of XTI/Sockets equivalents

XTI function Socket function Comments
t_open socket
- socketpair
t_bind bind t_bind sets the queue depth for passive sockets, but bind does not. For sockets, the queue length is specified in the call to listen
t_optmgmt getsockopt
setsockopt
t_optmgmt manages only transport options getsockopt and setsockopt can manage options at the transport layer, but also at the socket layer and at arbitrary protocol layers
t_unbind -
t_close close
t_getinfo getsockopt t_getinfo returns information about the transport. getsockopt can return information about the transport and the socket
t_getprotaddr getpeername
getsockname
t_getprotaddr gets both the local and the remote protocol addresses associated with the transport endpoint. getpeername gets the remote protocol address associated with a socket. getsockname gets the local protocol address associated with a socket
t_getstate -
t_sync -
t_alloc -
t_free -
t_look - getsockopt with the SO_ERROR option returns the same kind of error information as t_look
t_error perror
t_connect connect A connect can be done without first binding the local endpoint. The endpoint must be bound before calling t_connect. A connect can be done on a connectionless endpoint to set the default destination address for datagrams
t_rcvconnect -
t_listen listen t_listen waits for connection indications. listen merely sets the queue depth
t_accept accept  
t_snd send
sendto
sendmsg
sendto and sendmsg operate in connection mode as well as datagram mode
t_rcv recv
recvfrom
recvmsg
recvfrom and recvmsg operate in connection mode as well as datagram mode.
t_snddis -
t_rcvdis -
t_sndrel shutdown
t_rcvrel -
t_sndudata sendto sendmsg
t_rcvudata recvfrom recvmsg
t_rcvuderr -
read
write
read
write
In XTI, you must push the tirdwr module before calling read or write; in sockets, it is sufficient just to call read or write


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004