TCP_Accept

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > TcpUdp (Networking) > TCP functions >

TCP_Accept

 

Description

 

This command accepts incoming communication from port/service previously opened via TCP_OpenServer, identified via file number.

 

Syntax

 

nFileNew = TCP_Accept(nFile)

 

Returns

 

New file number in case of success, otherwise zero.

 

Parameters

 

Name

Type

Optional

Meaning

nFile

Number

No

File number. Use an unused file number. To get the first available file number, use TCP_FreeFile function

 

Remarks

 

Restrictions

 

See also

 

TCP_OpenServer

 

Examples