C# Class Pdelvo.Minecraft.Network.Extensions

Afficher le fichier Open project: pdelvo/Pdelvo.Minecraft

Méthodes publiques

Méthode Description
Connect ( this socket, IPAddress addresses, int port, System.TimeSpan timeout ) : bool

Connects the specified socket.

Connect ( this socket, IPEndPoint endPoint, System.TimeSpan timeout ) : bool
Connect ( this socket, string host, int port, System.TimeSpan timeout ) : bool

Connects the specified socket.

ParseEndPoint ( string str ) : IPEndPoint
ReadByteAsync ( this stream ) : Task
TryParseEndPoint ( string str, IPEndPoint &value ) : bool
WriteByteAsync ( this stream, byte value ) : System.Threading.Tasks.Task

Private Methods

Méthode Description
AsyncConnect ( Socket socket, Func connect, System.TimeSpan timeout ) : bool

Asyncs the connect.

Method Details

Connect() public static méthode

Connects the specified socket.
public static Connect ( this socket, IPAddress addresses, int port, System.TimeSpan timeout ) : bool
socket this The socket.
addresses System.Net.IPAddress The addresses.
port int The port.
timeout System.TimeSpan The timeout.
Résultat bool

Connect() public static méthode

public static Connect ( this socket, IPEndPoint endPoint, System.TimeSpan timeout ) : bool
socket this
endPoint System.Net.IPEndPoint
timeout System.TimeSpan
Résultat bool

Connect() public static méthode

Connects the specified socket.
public static Connect ( this socket, string host, int port, System.TimeSpan timeout ) : bool
socket this The socket.
host string The host.
port int The port.
timeout System.TimeSpan The timeout.
Résultat bool

ParseEndPoint() public static méthode

public static ParseEndPoint ( string str ) : IPEndPoint
str string
Résultat System.Net.IPEndPoint

ReadByteAsync() public static méthode

public static ReadByteAsync ( this stream ) : Task
stream this
Résultat Task

TryParseEndPoint() public static méthode

public static TryParseEndPoint ( string str, IPEndPoint &value ) : bool
str string
value System.Net.IPEndPoint
Résultat bool

WriteByteAsync() public static méthode

public static WriteByteAsync ( this stream, byte value ) : System.Threading.Tasks.Task
stream this
value byte
Résultat System.Threading.Tasks.Task