Skip to content

CreateTCPServer

Claude edited this page Oct 27, 2026 · 6 revisions

Blitz3DBlitzPlusBlitzBasic

CreateTCPServer

CreateTCPServer:Int32 port:Int32
Parameter Type Default Description
port 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.

Related Commands

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

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally