Date: 02-16-2022
Return to Index
created by gbSnippets
'PowerBASIC provides both TCP and UDP statements for creating
'and managing Internet connections and data transfer.
Tcp Open UDP Open
Close Close
Notify Notify
Send Send
Receive Receive
---
Accept
Line Input
Print
'Syntax: TCP Statements
Tcp Accept [#] fNum& AS newfNum&
Tcp Close [#] fNum&
Tcp Line [Input] [#] fNum&, Buffer$
Tcp Notify [#] fNum&, {Send | Recv | Accept | CONNECT | Close} TO hWnd& As a Client:
Tcp Open {Port p& | srvc$} AT host$ AS [#] fNum& [TIMEOUT timeoutval&] As a Server:
Tcp Open Server [Addr ip&] {Port p& | srvc$} AS [#] fNum& [TIMEOUT timeoutval&]
Tcp Print [#] fNum&, string_expression[;]
Tcp Recv [#] fNum&, count&, Buffer$
Tcp Send [#] fNum&, string_expression
'Syntax: UDP Statements
UDP Close [#] fNum&
UDP Notify [#] fNum&, {Send | Recv | Close} TO hWnd& AS wMsg&
UDP Open [Port p&] AS [#] fNum& [TIMEOUT timeoutval&]
UDP Recv [#] fNum&, From ip&, pNum&, Buffer$
UDP Send [#] fNum&, AT ip&, pNum&, string_expression
'gbs_00369
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm