C# Class Engine.Objects.SocketInstance

Represents a TCP socket
Inheritance: Jurassic.Library.ObjectInstance
Afficher le fichier Open project: Radnen/sphere-sfml Class Usage Examples

Méthodes publiques

Méthode Description
ListenOnPort ( int port, [ address = "127.0.0.1" ) : SocketInstance
SocketInstance ( ScriptEngine parent, string address, int port ) : System

Opens a TCP client and returns it to Sphere.

SocketInstance ( ScriptEngine parent, string address, int port, TcpClient client ) : System

Wraps a TCP Client and returns it to Sphere.

Private Methods

Méthode Description
Close ( ) : void
GetPendingReadSize ( ) : int
IsConnected ( ) : bool
Read ( int size ) : ByteArrayInstance
Write ( ByteArrayInstance array ) : void

Method Details

ListenOnPort() public static méthode

public static ListenOnPort ( int port, [ address = "127.0.0.1" ) : SocketInstance
port int
address [
Résultat SocketInstance

SocketInstance() public méthode

Opens a TCP client and returns it to Sphere.
public SocketInstance ( ScriptEngine parent, string address, int port ) : System
parent ScriptEngine The Parent Script Engine
address string IPv4 Address
port int The port top open
Résultat System

SocketInstance() public méthode

Wraps a TCP Client and returns it to Sphere.
public SocketInstance ( ScriptEngine parent, string address, int port, TcpClient client ) : System
parent ScriptEngine The Parent Script Engine
address string IPv4 Address
port int The port top open
client System.Net.Sockets.TcpClient
Résultat System