Class ObjectComProtocol
Inheritance
System.Object
ObjectComProtocol
Assembly: Experior.Core.dll
Syntax
public class ObjectComProtocol : Xcelgo.Communication.TCP
Constructors
ObjectComProtocol(Int32)
Declaration
public ObjectComProtocol(int port)
Parameters
Type |
Name |
Description |
System.Int32 |
port |
|
ObjectComProtocol(Int32, String)
Declaration
public ObjectComProtocol(int port, string ip)
Parameters
Type |
Name |
Description |
System.Int32 |
port |
|
System.String |
ip |
|
Methods
ConnectionEstablished()
Declaration
public override void ConnectionEstablished()
FromBytes<T>(Byte[])
Declaration
public T FromBytes<T>(byte[] arr)
where T : struct
Parameters
Type |
Name |
Description |
System.Byte[] |
arr |
|
Returns
Type Parameters
GetBytes<T>(T)
Declaration
public byte[] GetBytes<T>(T str)
where T : struct
Parameters
Type |
Name |
Description |
T |
str |
|
Returns
Type |
Description |
System.Byte[] |
|
Type Parameters
Received(Byte[], Int32)
Declaration
protected override void Received(byte[] data, int length)
Parameters
Type |
Name |
Description |
System.Byte[] |
data |
|
System.Int32 |
length |
|
Send<T>(T)
Declaration
public void Send<T>(T s)
where T : struct
Parameters
Type |
Name |
Description |
T |
s |
|
Type Parameters