---
name: "globus_xio_tcp_driver.h"
section: "3"
platform: "linux"
package: "libglobus-xio-doc"
version: "6.6-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/globus_xio_tcp_driver.h"
---

# globus\_xio\_tcp\_driver.h(3)

Header file for XIO TCP Driver.

## NAME

builtins/tcp/globus\_xio\_tcp\_driver.h - Header file for XIO TCP Driver.

## SYNOPSIS

`#include 'globus_xio_system.h'`\

### Macros

\#define **GLOBUS\_XIO\_TCP\_INVALID\_HANDLE**\

### Enumerations

enum **globus\_xio\_tcp\_error\_type\_t** { **GLOBUS\_XIO\_TCP\_ERROR\_NO\_ADDRS** }\
 enum **globus\_xio\_tcp\_cmd\_t** { **GLOBUS\_XIO\_TCP\_SET\_SERVICE**, **GLOBUS\_XIO\_TCP\_GET\_SERVICE**, **GLOBUS\_XIO\_TCP\_SET\_PORT**, **GLOBUS\_XIO\_TCP\_GET\_PORT**, **GLOBUS\_XIO\_TCP\_SET\_BACKLOG**, **GLOBUS\_XIO\_TCP\_GET\_BACKLOG**, **GLOBUS\_XIO\_TCP\_SET\_LISTEN\_RANGE**, **GLOBUS\_XIO\_TCP\_GET\_LISTEN\_RANGE**, **GLOBUS\_XIO\_TCP\_GET\_HANDLE**, **GLOBUS\_XIO\_TCP\_SET\_HANDLE**, **GLOBUS\_XIO\_TCP\_SET\_INTERFACE**, **GLOBUS\_XIO\_TCP\_GET\_INTERFACE**, **GLOBUS\_XIO\_TCP\_SET\_RESTRICT\_PORT**, **GLOBUS\_XIO\_TCP\_GET\_RESTRICT\_PORT**, **GLOBUS\_XIO\_TCP\_SET\_REUSEADDR**, **GLOBUS\_XIO\_TCP\_GET\_REUSEADDR**, **GLOBUS\_XIO\_TCP\_SET\_NO\_IPV6**, **GLOBUS\_XIO\_TCP\_GET\_NO\_IPV6**, **GLOBUS\_XIO\_TCP\_SET\_CONNECT\_RANGE**, **GLOBUS\_XIO\_TCP\_GET\_CONNECT\_RANGE**, **GLOBUS\_XIO\_TCP\_SET\_KEEPALIVE**, **GLOBUS\_XIO\_TCP\_GET\_KEEPALIVE**, **GLOBUS\_XIO\_TCP\_SET\_LINGER**, **GLOBUS\_XIO\_TCP\_GET\_LINGER**, **GLOBUS\_XIO\_TCP\_SET\_OOBINLINE**, **GLOBUS\_XIO\_TCP\_GET\_OOBINLINE**, **GLOBUS\_XIO\_TCP\_SET\_SNDBUF**, **GLOBUS\_XIO\_TCP\_GET\_SNDBUF**, **GLOBUS\_XIO\_TCP\_SET\_RCVBUF**, **GLOBUS\_XIO\_TCP\_GET\_RCVBUF**, **GLOBUS\_XIO\_TCP\_SET\_NODELAY**, **GLOBUS\_XIO\_TCP\_GET\_NODELAY**, **GLOBUS\_XIO\_TCP\_SET\_SEND\_FLAGS**, **GLOBUS\_XIO\_TCP\_GET\_SEND\_FLAGS**, **GLOBUS\_XIO\_TCP\_GET\_LOCAL\_CONTACT**, **GLOBUS\_XIO\_TCP\_GET\_LOCAL\_NUMERIC\_CONTACT**, **GLOBUS\_XIO\_TCP\_GET\_REMOTE\_CONTACT**, **GLOBUS\_XIO\_TCP\_GET\_REMOTE\_NUMERIC\_CONTACT**, **GLOBUS\_XIO\_TCP\_AFFECT\_ATTR\_DEFAULTS**, **GLOBUS\_XIO\_TCP\_SET\_BLOCKING\_IO**, **GLOBUS\_XIO\_TCP\_GET\_BLOCKING\_IO** }\
 enum **globus\_xio\_tcp\_send\_flags\_t** { **GLOBUS\_XIO\_TCP\_SEND\_OOB** = MSG\_OOB }\

### Functions

globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_SET\_SERVICE**, const char \*service\_name)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_GET\_SERVICE**, char \*\*service\_name\_out)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_SET\_PORT**, int listener\_port)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_GET\_PORT**, int \*listener\_port\_out)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_SET\_BACKLOG**, int listener\_backlog)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_GET\_BACKLOG**, int \*listener\_backlog\_out)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_SET\_LISTEN\_RANGE**, int listener\_min\_port, int listener\_max\_port)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_GET\_LISTEN\_RANGE**, int \*listener\_min\_port\_out, int \*listener\_max\_port\_out)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_GET\_HANDLE**, globus\_xio\_system\_socket\_t \*handle\_out)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_GET\_HANDLE**, globus\_xio\_system\_socket\_t \*handle\_out)\
 globus\_result\_t **globus\_xio\_server\_cntl** (server, driver, **GLOBUS\_XIO\_TCP\_GET\_HANDLE**, globus\_xio\_system\_socket\_t \*handle\_out)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_SET\_HANDLE**, globus\_xio\_system\_socket\_t handle)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_SET\_INTERFACE**, const char \*interface)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_GET\_INTERFACE**, char \*\*interface\_out)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_SET\_RESTRICT\_PORT**, globus\_bool\_t restrict\_port)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_GET\_RESTRICT\_PORT**, globus\_bool\_t \*restrict\_port\_out)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_SET\_REUSEADDR**, globus\_bool\_t resuseaddr)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_GET\_REUSEADDR**, globus\_bool\_t \*resuseaddr\_out)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_SET\_NO\_IPV6**, globus\_bool\_t no\_ipv6)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_GET\_NO\_IPV6**, globus\_bool\_t \*no\_ipv6\_out)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_SET\_CONNECT\_RANGE**, int connector\_min\_port, int connector\_max\_port)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_GET\_CONNECT\_RANGE**, int \*connector\_min\_port\_out, int \*connector\_max\_port\_out)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_SET\_KEEPALIVE**, globus\_bool\_t keepalive)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_SET\_KEEPALIVE**, globus\_bool\_t keepalive)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_GET\_KEEPALIVE**, globus\_bool\_t \*keepalive\_out)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_GET\_KEEPALIVE**, globus\_bool\_t \*keepalive\_out)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_SET\_LINGER**, globus\_bool\_t linger, int linger\_time)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_SET\_LINGER**, globus\_bool\_t linger, int linger\_time)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_GET\_LINGER**, globus\_bool\_t \*linger\_out, int \*linger\_time\_out)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_GET\_LINGER**, globus\_bool\_t \*linger\_out, int \*linger\_time\_out)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_SET\_OOBINLINE**, globus\_bool\_t oobinline)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_SET\_OOBINLINE**, globus\_bool\_t oobinline)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_GET\_OOBINLINE**, globus\_bool\_t \*oobinline\_out)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_GET\_OOBINLINE**, globus\_bool\_t \*oobinline\_out)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_SET\_SNDBUF**, int sndbuf)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_SET\_SNDBUF**, int sndbuf)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_GET\_SNDBUF**, int \*sndbuf\_out)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_GET\_SNDBUF**, int \*sndbuf\_out)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_SET\_RCVBUF**, int rcvbuf)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_SET\_RCVBUF**, int rcvbuf)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_GET\_RCVBUF**, int \*rcvbuf\_out)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_GET\_RCVBUF**, int \*rcvbuf\_out)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_SET\_NODELAY**, globus\_bool\_t nodelay)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_SET\_NODELAY**, globus\_bool\_t nodelay)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_GET\_NODELAY**, globus\_bool\_t \*nodelay\_out)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_GET\_NODELAY**, globus\_bool\_t \*nodelay\_out)\
 globus\_result\_t **globus\_xio\_data\_descriptor\_cntl** (dd, driver, **GLOBUS\_XIO\_TCP\_SET\_SEND\_FLAGS**, int send\_flags)\
 globus\_result\_t **globus\_xio\_data\_descriptor\_cntl** (dd, driver, **GLOBUS\_XIO\_TCP\_GET\_SEND\_FLAGS**, int \*send\_flags\_out)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_GET\_LOCAL\_CONTACT**, char \*\*contact\_string\_out)\
 globus\_result\_t **globus\_xio\_server\_cntl** (server, driver, **GLOBUS\_XIO\_TCP\_GET\_LOCAL\_CONTACT**, char \*\*contact\_string\_out)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_GET\_LOCAL\_NUMERIC\_CONTACT**, char \*\*contact\_string\_out)\
 globus\_result\_t **globus\_xio\_server\_cntl** (server, driver, **GLOBUS\_XIO\_TCP\_GET\_LOCAL\_NUMERIC\_CONTACT**, char \*\*contact\_string\_out)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_GET\_REMOTE\_CONTACT**, char \*\*contact\_string\_out)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_GET\_REMOTE\_NUMERIC\_CONTACT**, char \*\*contact\_string\_out)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_AFFECT\_ATTR\_DEFAULTS**, globus\_bool\_t affect\_global)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_SET\_BLOCKING\_IO**, globus\_bool\_t use\_blocking\_io)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_SET\_BLOCKING\_IO**, globus\_bool\_t use\_blocking\_io)\
 globus\_result\_t **globus\_xio\_attr\_cntl** (attr, driver, **GLOBUS\_XIO\_TCP\_GET\_BLOCKING\_IO**, globus\_bool\_t \*use\_blocking\_io\_out)\
 globus\_result\_t **globus\_xio\_handle\_cntl** (handle, driver, **GLOBUS\_XIO\_TCP\_GET\_BLOCKING\_IO**, globus\_bool\_t \*use\_blocking\_io\_out)\

## Detailed Description

Header file for XIO TCP Driver.

## Author

Generated automatically by Doxygen for globus\_xio from the source code.
