Network socket utility object for simple binary socket access.
Platform Support
Jaxer Server Framework | Jaxer Client Framework | 1.0 | no |
---|
Constructors
Constructor | Action | Jaxer Server Framework | Jaxer Client Framework | ||
---|---|---|---|---|---|
Jaxer.BinarySocket Constructor() : Jaxer.BinarySocket
The constructor of a network socket object used for binary data operations
|
Show Details | 1.0 | no | ||
Jaxer.BinarySocket() : Jaxer.BinarySocketThe constructor of a network socket object used for binary data operations Returns
|
Functions
Method | Action | Jaxer Server Framework | Jaxer Client Framework | ||||||
---|---|---|---|---|---|---|---|---|---|
available() : Number
How many bytes are currently available on the stream?
|
Show Details | 1.0 | no | ||||||
Returns
|
|||||||||
Close the socket
|
No Details | 1.0 | no | ||||||
|
|||||||||
Flush the socket's output stream
|
No Details | 1.0 | no | ||||||
|
|||||||||
open(String host, Number port) :
void
Open the socket for communication
|
Show Details | 1.0 | no | ||||||
Parameters
|
|||||||||
readByteArray(Number count) : Array
Read binary data from the socket into an array of bytes (integers)
|
Show Details | 1.0 | no | ||||||
Parameters
Returns
|
|||||||||
readByteString(Number count) : String
Read binary data from the socket into a string
|
Show Details | 1.0 | no | ||||||
Parameters
Returns
|
|||||||||
writeByteArray(Array data) :
void
Write a binary (byte) data array of integers to the socket
|
Show Details | 1.0 | no | ||||||
Parameters
|
|||||||||
writeByteString(Array data) :
void
Write a binary (byte) data string to the socket
|
Show Details | 1.0 | no | ||||||
Parameters
|