Network socket utility object for simple socket access.
Platform Support
| Jaxer Server Framework | Jaxer Client Framework | 0.9 | no |
|---|
Constructors
| Constructor | Action | Jaxer Server Framework | Jaxer Client Framework | ||
|---|---|---|---|---|---|
|
Jaxer.Socket Constructor() : Jaxer.Socket
The constructor of a network socket object
|
Show Details | 0.9 | no | ||
Jaxer.Socket() : Jaxer.SocketThe constructor of a network socket object Returns
|
|||||
Functions
| Method | Action | Jaxer Server Framework | Jaxer Client Framework | ||||||
|---|---|---|---|---|---|---|---|---|---|
|
available() : String
Is the socket connection available?
|
Show Details | 0.9 | no | ||||||
|
Returns
|
|||||||||
|
Close the socket
|
No Details | 0.9 | no | ||||||
|
|
|||||||||
|
Flush the socket's output stream
|
No Details | 0.9 | no | ||||||
|
|
|||||||||
|
open(String host, Number port) :
void
Open the socket for communication
|
Show Details | 0.9 | no | ||||||
|
Parameters
|
|||||||||
|
readLine() : String
Read a single line from the socket
|
Show Details | 0.9 | no | ||||||
|
Returns
|
|||||||||
|
readString(Number count) : String
Read characters from the socket into a string
|
Show Details | 0.9 | no | ||||||
|
Parameters
Returns
|
|||||||||
|
writeString(String data) :
void
Write a string to the socket
|
Show Details | 0.9 | no | ||||||
|
Parameters
|
|||||||||
