C# Class MarsRover.TCPClient

Mostrar archivo Open project: jpadillak/Concordia_Capstone2013-14

Public Methods

Method Description
GetNumberOfReceivedData ( ) : int
Init ( int QueueSize, TransmittedDataCBType aTransmittedDataCB, ReceivedDataCDType aReceivedDataCD ) : void

Internal init function

ReceiveData ( byte &data, int size ) : int

Receive data from the connected server.

SendData ( byte data, int size ) : void

Send data to the conneted server

TCPClient ( String IPAddressStr, int Port, TransmittedDataCBType aTransmittedDataCB, ReceivedDataCDType aReceivedDataCD ) : System

Create a TCP client objet, on the specified ip address and port.

Private Methods

Method Description
ReceptionTask ( ) : void

Reception Task

TransmissionTask ( ) : void

Transmission task

Method Details

GetNumberOfReceivedData() public method

public GetNumberOfReceivedData ( ) : int
return int

Init() public method

Internal init function
public Init ( int QueueSize, TransmittedDataCBType aTransmittedDataCB, ReceivedDataCDType aReceivedDataCD ) : void
QueueSize int
aTransmittedDataCB TransmittedDataCBType
aReceivedDataCD ReceivedDataCDType
return void

ReceiveData() public method

Receive data from the connected server.
public ReceiveData ( byte &data, int size ) : int
data byte
size int
return int

SendData() public method

Send data to the conneted server
public SendData ( byte data, int size ) : void
data byte
size int
return void

TCPClient() public method

Create a TCP client objet, on the specified ip address and port.
public TCPClient ( String IPAddressStr, int Port, TransmittedDataCBType aTransmittedDataCB, ReceivedDataCDType aReceivedDataCD ) : System
IPAddressStr String
Port int
aTransmittedDataCB TransmittedDataCBType
aReceivedDataCD ReceivedDataCDType
return System