Method | Description | |
---|---|---|
Pack ( object obj ) : byte[] |
Packs an object into a big-endian byte array
|
|
Recieve ( |
Receieves a single object over the specified stream
|
|
Send ( |
Sends a single object over the specified stream
|
|
Test ( |
Tests a connection to see if it is valid
|
|
TestMsg ( |
Sends a blank message with length header of zero.
|
|
Unpack ( byte data ) : object |
Unpacks a big-endian byte array into an object
|
public static Pack ( object obj ) : byte[] | ||
obj | object | Object to pack |
return | byte[] |
public static Recieve ( |
||
stream | Stream to receive the message from | |
return | object |
public static Send ( |
||
stream | Stream to send the message over | |
obj | object | Object to send |
return | void |
public static Test ( |
||
stream | Stream to test | |
return | bool |
public static TestMsg ( |
||
stream | ||
return | void |