Struct:ttUserTcpCon

Jump to: navigation, search
#include <trsocket.h>
 
/*
 * User connection structure.
 */
typedef struct tsUserTcpCon
{
    struct sockaddr_storage uconAddrLocal;
    struct sockaddr_storage uconAddrRemote;
    ttUserSqn               uconIrs;
    ttUserSqn               uconIss;
    ttUserSqn               uconRcvNxt;
    ttUserSqn               uconSndUna;
    ttUser32Bit             uconRcvWnd;
    ttUser32Bit             uconSndWnd;
    ttUser32Bit             uconRcvBufSize;
    ttUser32Bit             uconSndBufSize;
    ttUserConstCharPtr      uconBindDeviceName;
    ttUserTs                uconRcvTsRecent;
    ttUserTs                uconRcvTsRecentAge;
    ttUserTs                uconSndTsRecent;
    ttUserTs                uconSndTsRecentAge;
    ttUser16Bit             uconMss;
    ttUser8Bit              uconState;
    ttUser8Bit              uconSackOpt;
    ttUser8Bit              uconTsOpt;
    ttUser8Bit              uconRcvWndScale;
    ttUser8Bit              uconSndWndScale;
} ttUserTcpCon;
 
typedef ttUserTcpCon TM_FAR * ttUserTcpConPtr;

Structure Description

The TCP connection information for Socket Importing when calling tfUserCreateTcpSocket().

In the description below, the term donor refers to the external node that is donating the TCP socket endpoint that you are importing. The term peer refers to the external node to which the imported socket connects (the end that the donor was connected to).


Members

  • uconAddrLocal
    The IP address and TCP port number of the donor socket.
  • uconAddrRemote
    The IP address and TCP port number of the peer socket.
  • uconIrs
    The initial sequence number sent by the peer.
  • uconIss
    The initial sequence number sent by the donor.
  • uconRcvNxt
    The last SEG.ACK sent by the donor.
  • uconSndUna
    The last SEG.ACK sent by the peer.
  • uconRcvWnd
    The SEG.WND associated with the last SEG.ACK sent by the donor.
  • uconSndWnd
    The SEG.WND associated with the last SEG.ACK sent by the peer.
  • uconRcvBufSize
    Socket receive buffer size (socket option SO_RCVBUF). Set to zero to use the Treck default size.
  • uconSndBufSize
    Socket send buffer size (socket option SO_SNDBUF). Set to zero to use the Treck default size.
  • uconBindDeviceName
    Bind to a local device name. Set to NULL for no device binding. Only valid if TM_USE_STRONG_ESL is defined in <trsystem.h>.
  • uconRcvTsRecent
    The latest timestamp value sent by the peer, if the timestamp option is enabled.
  • uconRcvTsRecentAge
    The timestamp on the control node when uconRcvTsRecent was recorded.
  • uconSndTsRecent
    The latest timestamp value sent by the donor, if the timestamp option is enabled.
  • uconSndTsRecentAge
    The timestamp on the control node when uconSndTsRecent was recorded.
  • uconMss
    The smaller of two MSS values sent by the donor and peer during connection.
  • uconState
    TCP state of the donor socket. Currently, this must be set to 4 (established).
  • uconSackOpt
    Non-zero to use selective acknowledgment. Zero if not specified by either donor or peer.
  • uconTsOpt
    Non-zero to use the timestamp option. Zero if not specified by either donor or peer.
  • uconRcvWndScale
    The window scale option value specified by the peer; zero if not specified.
  • uconSndWndScale
    The window scale option value specified by the donor; zero if not specified.