Class CustomizableSocketTransport
- Namespace
- Netick
- Assembly
- Netick.dll
public class CustomizableSocketTransport
- Inheritance
-
CustomizableSocketTransport
- Inherited Members
-
Constructors
CustomizableSocketTransport(INetickSocket, int)
public CustomizableSocketTransport(INetickSocket socket, int maxConnections = 64)
Parameters
socket
INetickSocket
maxConnections
int
Fields
MaxConnections
public readonly int MaxConnections
Field Value
- int
TickPeriod
public readonly double TickPeriod
Field Value
- double
Timeout
Field Value
- double
Properties
IsServer
public bool IsServer { get; }
Property Value
- bool
Methods
Connect(string, int, byte[], int)
public void Connect(string ip, int port, byte[] connectRequest, int connectRequestSizeBytes)
Parameters
ip
string
port
int
connectRequest
byte[]
connectRequestSizeBytes
int
~CustomizableSocketTransport()
protected ~CustomizableSocketTransport()
Kick(Connection)
public void Kick(Connection connection)
Parameters
connection
Connection
SendPayload(Connection, BitBuffer)
public void SendPayload(Connection connection, BitBuffer buffer)
Parameters
connection
Connection
buffer
BitBuffer
SendPayload(Connection, IntPtr, int)
public void SendPayload(Connection connection, IntPtr ptr, int size)
Parameters
connection
Connection
ptr
IntPtr
size
int
Shutdown()
StartClient(int, int)
public void StartClient(int sendBufferSize, int receiveBufferSize)
Parameters
sendBufferSize
int
receiveBufferSize
int
StartServer(int, int, int)
public void StartServer(int port, int sendBufferSize, int receiveBufferSize)
Parameters
port
int
sendBufferSize
int
receiveBufferSize
int
Stop()
Update()
Events
NetworkReceiveEvent
public event OnNetworkReceive NetworkReceiveEvent
Event Type
- OnNetworkReceive
OnConnectFailedEvent
public event OnConnectFailed OnConnectFailedEvent
Event Type
- OnConnectFailed
OnConnectionRequestEvent
public event OnConnectionRequest OnConnectionRequestEvent
Event Type
- OnConnectionRequest
PeerConnectedEvent
public event OnPeerConnected PeerConnectedEvent
Event Type
- OnPeerConnected
PeerDisconnectedEvent
public event OnPeerDisconnected PeerDisconnectedEvent
Event Type
- OnPeerDisconnected