C# 클래스 Engine.Objects.SocketInstance

Represents a TCP socket
상속: Jurassic.Library.ObjectInstance
파일 보기 프로젝트 열기: Radnen/sphere-sfml 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
Close ( ) : void
GetPendingReadSize ( ) : int
IsConnected ( ) : bool
Read ( int size ) : ByteArrayInstance
Write ( ByteArrayInstance array ) : void

메소드 상세

ListenOnPort() 공개 정적인 메소드

public static ListenOnPort ( int port, [ address = "127.0.0.1" ) : SocketInstance
port int
address [
리턴 SocketInstance

SocketInstance() 공개 메소드

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
리턴 System

SocketInstance() 공개 메소드

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
리턴 System