Navigation:  thinBasic Modules > TcpUdp (Networking) > UDP functions >

UDP_OpenServer

Previous pageReturn to chapter overviewNext page

 

Description

 

Creates an UDP server port for communication.

 

Syntax

 

n = UDP_Open(nPort, nFileID [, nTimeOut])

 

Returns

 

Number.

Returns error code.

 

Parameters

 

Name

Type

Optional

Meaning

nPort

Number

No

The UDP port to open

nFileID

Number

No

A file channel. Use UDP_FreeFile to get first available file ID.

nTimeOut

Number

Yes

Timeout in milli sec

 

Remarks

 

Restrictions

 

See also

 

Examples