QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

GET reads unformatted (raw) data from an open TCP/IP connection opened with _OPENCLIENT, _OPENHOST or _OPENCONNECTION.

Syntax

Syntax 1:

GET #handle, , b$

Syntax 2:

GET #handle, ,x%

Communicating using unformatted/raw streamed data

Example(s)

Example:


 PUT #c, , a$ ' sends data 
 GET #o, , b$ ' reads any available data into variable length string b$  
 GET #o, , x% ' if 2 bytes are available, they are read into x%

Explanation:

More Examples

See Also