Skip to content

CreateTCPServer

Narta Xaymar Dirks edited this page Nov 1, 2026 · 6 revisions

Blitz3DBlitzPlusBlitzBasic

CreateTCPServer

CreateTCPServer:Int32 port:Int32
Parameter Mode Type Default Description
port In Int32 required The port to listen on.

Returns: A server handle, or 0 when the port cannot be used, for example because another program already listens on it.

Description

Starts listening for TCP connections on a port. Clients connect with OpenTCPStream and you take them with AcceptTCPStream.

Differences

  • The server accepts IPv4 and IPv6 connections on the same port (where the system has IPv6), see IPv6.

Related Commands

AcceptTCPStream, CloseTCPServer, CloseTCPStream, CreateUDPStream, GetTCPStreamAddress, OpenTCPStream, TCPStreamIP, TCPStreamPort

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally