PureBasic - Network

Overview

PureBasic supports the official protocol to exchange data via the internet: TCP/IP in both IPv4 and IPv6 form. This means that games and applications can be written using the well-established client/server model. With these functions, its possible to create any kind of internet-related application (browsers, web servers, ftp clients, etc) or even multiplayer games.

Command Index

CloseNetworkConnection
CloseNetworkServer
ConnectionID
CreateNetworkServer
EventClient
EventServer
ExamineIPAddresses
FreeIP
GetClientIP
GetClientPort
HostName
IPAddressField
IPString
MakeIPAddress
NetworkClientEvent
NetworkServerEvent
NextIPAddress
OpenNetworkConnection
ReceiveNetworkData
SendNetworkData
SendNetworkString
ServerID

Example

NetworkClient.pb
NetworkServer.pb

Supported OS

All

Reference Manual - Index