Click or drag to resize

CSocket Class

X#
Provide a class for low-level TCP/IP programming.
Inheritance Hierarchy
Object
  CSocket
    StdSocket

Namespace:  VO
Assembly:  VOInternetClasses (in VOInternetClasses.dll) Version: 2.21
Syntax
 CLASS CSocket
Request Example View Source

The CSocket type exposes the following members.

Constructors
  NameDescription
Public methodCSocket
Construct a CSocket object.
Top
Properties
  NameDescription
Public propertyError
Numeric value representing the error code.
Public propertyErrorMsg
String with error information.
Public propertyRcvBufSize
**Missing documentation **
Public propertySndBufSize
**Missing documentation **
Public propertyStatus
Numeric value with the current status representing one of the following states:
Public propertyTimeOut
Numeric value representing the time-out in milliseconds.
Public propertyTimeOutRetries
**Missing documentation **
Top
Methods
  NameDescription
Public methodCode exampleaccept
Accept a new connection on a socket.
Public methodbind
Associate a local address with a socket.
Public methodCode exampleClose
Disconnects the socket and closes it.
Public methodCode exampleconnect
Establish a connection of the socket instance to a peer.
Public methodDestroy
**Missing documentation **
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()!
Public methodDisplayError
Display error messages.
Public methodCode exampleGetLine
Extract the first line from the socket data received via the current connection.
Public methodCode exampleGetLineFrom
Wait for connection and extract first line from incoming data.
Public methodGetLines
**Missing documentation **
Public methodCode examplegetpeername
Get the address of the peer to which the socket is connected.
Public methodCode exampleGetRaw
Receive all available data from a socket.
Public methodCode exampleGetRawText
Receive all available data from a socket.
Public methodCode examplegetsockname
Get the local name for a socket.
Public methodInternetStatus
**Missing documentation **
Public methodCode examplelisten
Establish a socket to listen for an incoming connection.
Public methodCode exampleSendLine
Send data terminated by CRLF to the connected socket.
Public methodCode exampleSendLineTo
Send data terminated by CRLF to a specific destination.
Public methodCode exampleSendRaw
Send any data to the connected socket.
Public methodCode exampleSendRawText
Send any data to the connected socket.
Top
Remarks
This class provides low-level socket functionality that can be used to implement different Internet protocols.
See Also

Reference