Class Client.Connection
Inheritance
System.Object
Client.Connection
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Pigeoneer
Assembly: Trail.dll
Syntax
public class Connection
Methods
Close()
Closes the connection.
Declaration
public void Close()
Finalize()
Declaration
protected void Finalize()
Send(Byte[], SendMode)
Sends a binary message using the specified SendMode.
Messages are always encrypted (except when running locally).
Declaration
public Result Send(byte[] data, SendMode sendMode)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | The message content. |
SendMode | sendMode | How to send the message. |
Returns
Type | Description |
---|---|
Result | Ok, SentReliably, AlreadyClosed |
Events
OnMessage
Sets a callback that is fired when a message is received. data contains the message contents.
Declaration
public event Client.OnMessageCallback OnMessage
Event Type
Type | Description |
---|---|
Client.OnMessageCallback |