connect

create new socket connection to given server port


Parameters

connect port :integer

Attributes

to:stringset socket address
udpuse UDP instead of TCP

Returns

  • :socket

Examples

copy
; connect to local server on port 18966 server: connect 18966

copy
; "connect" to a udp server on port 12345 server: connect.udp 12345

copy
; connect to a remote server on port 18966 server: connect.to:"123.456.789.123" 18966

Related