Network Library API - brombres/Rogue GitHub Wiki
extends ServerSocket
| Name | Type | Description |
|---|---|---|
| @native114 | RogueCNativeProperty | |
| @native115 | RogueCNativeProperty | |
| is_listening | Logical | |
| port | Int32 | |
| socket_id | Int |
| Signature | Return Type | Description |
|---|---|---|
| init( port:Int32 ) | ||
| accept_connection() | BasicSocket | Returns null if no connections are being attempted. |
| close() | ||
| is_listening() | Logical | |
| on_cleanup() | ||
| port() | Int32 | |
| socket_id() | Int32 |
extends Socket
| Name | Type | Description |
|---|---|---|
| @native112 | RogueCNativeProperty | |
| port | Int32 | |
| printer | PrintWriter | |
| reader | BasicSocketReader | |
| remote_address | String | |
| remote_ip | String | |
| socket_id | Int | |
| state | Int32 | |
| writer | BasicSocketWriter |
| Signature | Return Type | Description |
|---|---|---|
| init( remote_address:String, port:Int32 ) |
$if (USING_THREADS) Thread( this=>handle_connection ) $else |
|
| init( socket_id:Int ) | Internal use - used by BasicServerSocket | |
| close() | ||
| handle_connection() | ||
| is_closed() | Logical | |
| is_connected() | Logical | |
| is_connecting() | Logical | |
| on_cleanup() | ||
| output() | PrintWriter | |
| reader() | Reader<<Byte>> | |
| remote_ip() | String | |
| socket_id() | Int32 | |
| writer() | Writer<<Byte>> |
extends Object
incorporates Reader<<$DataType>>
| Name | Type | Description |
|---|---|---|
| @native113 | RogueCNativeProperty | |
| buffer_count | Int32 | |
| buffer_pos | Int32 | |
| position | Int | |
| socket | BasicSocket |
| Signature | Return Type | Description |
|---|---|---|
| init( socket:BasicSocket ) | ||
| close() | ||
| has_another() | Logical | |
| on_end_use() | ||
| on_use() | BasicSocketReader | |
| peek() | Byte | |
| position() | Int | |
| read() | Byte | |
| read( buffer:Byte[], limit:Int ) | Int | |
| reset() | ||
| seek( pos:Int ) | ||
| seek( pos:Int32 ) | ||
| skip( n:Int ) | ||
| to<<Byte[]>>() | Byte[] | |
| to<<String>>() | String |
extends Object
incorporates Writer<<$DataType>>
| Name | Type | Description |
|---|---|---|
| position | Int | |
| socket | BasicSocket | |
| write_buffer | Byte[] |
| Signature | Return Type | Description |
|---|---|---|
| init( socket:BasicSocket ) | ||
| close() | ||
| flush() | ||
| on_use() | BasicSocketWriter | |
| on_end_use( err:Exception ) | Exception | |
| position() | Int | |
| reset() | ||
| seek_end() | ||
| seek( pos:Int ) | ||
| seek( pos:Int32 ) | ||
| skip( n:Int ) | ||
| skip( n:Int32 ) | ||
| write( list:Byte[] ) | ||
| write( value:Byte ) |
extends Object
Abstract base class of BasicServerSocket and SecureServerSocket
| Signature | Return Type | Description |
|---|---|---|
| create( port:Int32 ) | ServerSocket |
| Signature | Return Type | Description |
|---|---|---|
| accept_connection() | Socket | |
| close() | ||
| is_listening() | Logical | |
| port() | Int32 | |
| socket_id() | Int32 |
extends Object
Abstract base class of BasicSocket and SecureSocket
| Signature | Return Type | Description |
|---|---|---|
| create( remote_address:String, port:Int32 ) | Socket | |
| create( socket_id:Int32 ) | Socket | Internal use only - used by BasicServerSocket. |
| Signature | Return Type | Description |
|---|---|---|
| close() | ||
| is_closed() | Logical | |
| is_connected() | Logical | |
| is_connecting() | Logical | |
| output() | PrintWriter | |
| reader() | Reader<<Byte>> | |
| remote_ip() | String | |
| socket_id() | Int32 | |
| writer() | Writer<<Byte>> |