Class SimpleSocket
Manages socket connection+ack and low-level communication. High-level communication is supposed to happen in SocketMessageLayer.
public class SimpleSocket : IDisposable- Inheritance
- 
      objectSimpleSocket
- Implements
- Extension Methods
Fields
Connected
public Action<SimpleSocket> ConnectedField Value
Disconnected
public Action<SimpleSocket> DisconnectedField Value
Properties
ReadStream
public Stream ReadStream { get; }Property Value
RemoteAddress
public string RemoteAddress { get; }Property Value
RemotePort
public int RemotePort { get; }Property Value
WriteStream
public Stream WriteStream { get; }Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()StartClient(string, int, bool)
public Task StartClient(string address, int port, bool needAck = true)Parameters
Returns
StartServer(int, bool, int)
public Task StartServer(int port, bool singleConnection, int retryCount = 1)