Click or drag to resize

StdSocket Methods

X#

The StdSocket type exposes the following members.

Functions
  NameDescription
Public methodCode exampleaccept
Accept a new connection on a socket.
(Inherited from CSocket.)
Public methodbind
Associate a local address with a socket.
(Inherited from CSocket.)
Public methodCode exampleClose
Disconnects the socket and closes it.
(Inherited from CSocket.)
Public methodCode exampleconnect
Establish a connection of the socket instance to a peer.
(Inherited from CSocket.)
Public methodDestroy
**Missing documentation **
(Inherited from CSocket.)
Public methodCode exampleDisConnect
Shut down the current socket connection. This disables sending/receiving on the socket, but does NOT close the socket. Note that this function does NOT close the connection like it did in Visual Objects 2.5! To close a socket you need to call cSocket:Close()!
(Inherited from CSocket.)
Public methodDisplayError
Display error messages.
(Inherited from CSocket.)
Public methodCode exampleGetLine
Extract the first line from the socket data received via the current connection.
(Inherited from CSocket.)
Public methodCode exampleGetLineFrom
Wait for connection and extract first line from incoming data.
(Inherited from CSocket.)
Public methodGetLines
**Missing documentation **
(Inherited from CSocket.)
Public methodCode examplegetpeername
Get the address of the peer to which the socket is connected.
(Inherited from CSocket.)
Public methodCode exampleGetRaw
Receive all available data from a socket.
(Inherited from CSocket.)
Public methodCode exampleGetRawText
Receive all available data from a socket.
(Inherited from CSocket.)
Public methodCode examplegetsockname
Get the local name for a socket.
(Inherited from CSocket.)
Public methodInternetStatus (Overrides InternetStatus(Usual, Usual, Usual, Usual).)
Public methodCode examplelisten
Establish a socket to listen for an incoming connection.
(Inherited from CSocket.)
Public methodCode exampleSendLine
Send data terminated by CRLF to the connected socket.
(Inherited from CSocket.)
Public methodCode exampleSendLineTo
Send data terminated by CRLF to a specific destination.
(Inherited from CSocket.)
Public methodCode exampleSendRaw
Send any data to the connected socket.
(Inherited from CSocket.)
Public methodCode exampleSendRawText
Send any data to the connected socket.
(Inherited from CSocket.)
Top
See Also