| w3Sockets Reference |
Properties |
|
| (v1.0) |
|
Used to get the data received during some Wait functionsResponse.Write( socket.buffer ); |
|
|
|
|
| (v1.0) |
|
Boolean value that can be used to instruct w3 Sockets to
respond to telnet queriessocket.DoTelnetemulation = true |
|
|
|
|
| (v1.0) |
|
Text string representing the host and port you want to
connect to. This is in the form of "socket.host = "www.eu.microsoft.com:80" |
|
|
|
|
| (v1.0) |
|
| Type of terminal to emulate | |
|
|
|
| (v1.0) |
|
Default timeout for all operations in milisecondssocket.timeout = 5000; // Five seconds |
|
|
|
|
Methods |
|
| (v1.0) |
|
Closes an active connectionsocket.close(); |
|
|
|
|
| (v1.0) |
|
Waits and returns one row of dataline = socket.GetLine(); |
|
|
|
|
| (v1.0) |
|
Returns [Len] characters from the socketResponse.Write( Socket.GetText( 5 ) ); |
|
|
|
|
| (v1.0) |
|
Initiates a connection with "host"socket.Open(); |
|
|
|
|
| (v1.0) |
|
Sends a line of data and appends a crlf at the endsocket.sendLine( "GET /" ); |
|
|
|
|
| (v1.0) |
|
Sends a text string without linebreaksSocket.SendText( "Hello world" ); |
|
|
|
|
| (v1.0) |
|
Waits until data is returnedsocket.wait(); |
|
|
|
|
| (v1.0) |
|
Waits for a specifit string and then returnssocket.waitfor( "login:" ); |
|
|
|
|
| (v1.0) |
|
Waits until all data is received and the connection is
closed. The data can then be read from the "buffer" propertysocket.WaitForDisconnect(); |