---
name: "TCPSocket"
section: "3"
platform: "linux"
package: "libsc-doc"
version: "2.3.1-22"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/TCPSocket"
---

# TCPSocket(3)

## NAME

TCPSocket

## SYNOPSIS

Inherited by **TCPIOSocket**, and **TCPServerSocket**.

### Public Member Functions

void **create** ()\
 void **bind** (u\_int16\_t port\_begin, u\_int16\_t port\_fence)\
 int **port** ()\
 u\_int32\_t **addr** ()\
 bool **initialized** ()\
 bool **bound** ()\
 virtual void **close** ()\

### Protected Attributes

int **socket\_**\
 int **port\_**\
 bool **initialized\_**\
 bool **bound\_**\

## Author

Generated automatically by Doxygen for MPQC from the source code.
