# Interface TcpSocketConnectOpts

interface TcpSocketConnectOpts {
autoSelectFamily?: boolean;
autoSelectFamilyAttemptTimeout?: number;
family?: number;
hints?: number;
host?: string;
keepAlive?: boolean;
keepAliveInitialDelay?: number;
localAddress?: string;
localPort?: number;
lookup?: LookupFunction;
noDelay?: boolean;
onread?: OnReadOpts;
port: number;
}

#### Hierarchy (view full)

- ConnectOpts
  - TcpSocketConnectOpts

- Defined in node_modules/@types/node/net.d.ts:53

#####
Index

### Properties

autoSelectFamily?
autoSelectFamilyAttemptTimeout?
family?
hints?
host?
keepAlive?
keepAliveInitialDelay?
localAddress?
localPort?
lookup?
noDelay?
onread?
port

## Properties

### `Optional` autoSelectFamily

autoSelectFamily?: boolean

#### Since

v18.13.0

- Defined in node_modules/@types/node/net.d.ts:67

### `Optional` autoSelectFamilyAttemptTimeout

autoSelectFamilyAttemptTimeout?: number

#### Since

v18.13.0

- Defined in node_modules/@types/node/net.d.ts:71

### `Optional` family

family?: number

- Defined in node_modules/@types/node/net.d.ts:59

### `Optional` hints

hints?: number

- Defined in node_modules/@types/node/net.d.ts:58

### `Optional` host

host?: string

- Defined in node_modules/@types/node/net.d.ts:55

### `Optional` keepAlive

keepAlive?: boolean

- Defined in node_modules/@types/node/net.d.ts:62

### `Optional` keepAliveInitialDelay

keepAliveInitialDelay?: number

- Defined in node_modules/@types/node/net.d.ts:63

### `Optional` localAddress

localAddress?: string

- Defined in node_modules/@types/node/net.d.ts:56

### `Optional` localPort

localPort?: number

- Defined in node_modules/@types/node/net.d.ts:57

### `Optional` lookup

lookup?: LookupFunction

- Defined in node_modules/@types/node/net.d.ts:60

### `Optional` noDelay

noDelay?: boolean

- Defined in node_modules/@types/node/net.d.ts:61

### `Optional` onread

onread?: OnReadOpts

If specified, incoming data is stored in a single buffer and passed to the supplied callback when data arrives on the socket. Note: this will cause the streaming functionality to not provide any data, however events like 'error', 'end', and 'close' will still be emitted as normal and methods like pause() and resume() will also behave as expected.

Inherited from ConnectOpts.onread

- Defined in node_modules/@types/node/net.d.ts:51

### port

port: number

- Defined in node_modules/@types/node/net.d.ts:54