Method | Description | |
---|---|---|
BeginRecieve ( |
Begins asynchronous recieveing.
|
|
BeginRecieve ( |
Begins asynchronous recieveing.
|
|
BeginSend ( |
Begins asynchronous sending.
|
Method | Description | |
---|---|---|
OnRecievedData ( IAsyncResult a ) : void |
Is called from asynchronous socket if data is recieved.
|
|
OnSendedData ( IAsyncResult a ) : void |
Is called from asynchronous socket if data is sended.
|
|
ProccessData_Len ( |
||
ProccessData_Term ( |
||
SendDataBlock ( |
Starts sending block of data.
|
public static BeginRecieve ( |
||
socket | Socket from where to get data. | |
strm | Stream where to store data. | |
lengthToRead | long | Length of data to read. |
maxLength | long | Maximum length of data which may read. |
tag | object | User data. |
callBack | SocketCallBack | Method to call, if receive completes. |
activityCallback | SocketActivityCallback | Method to call, if data block is completed. Data is retrieved as blocks, /// for example data1 data2 ..., activity callback is called foreach data block. |
return | void |
public static BeginRecieve ( |
||
socket | Socket from where to get data. | |
strm | Stream where to store data. | |
maxLength | long | Maximum length of data which may read. |
terminator | string | Terminator string which terminates reading. eg '\r\n'. |
removeFromEnd | string | Removes following string at end of data. |
tag | object | User data. |
callBack | SocketCallBack | Method to call, if receive completes. |
activityCallback | SocketActivityCallback | Method to call, if data block is completed. Data is retrieved as blocks, /// for example data1 data2 ..., activity callback is called foreach data block. |
return | void |
public static BeginSend ( |
||
socket | Socket where to send data. | |
strm | Stream | Data to send. |
tag | object | User data. |
callBack | SocketCallBack | Method to call, if send completes. |
return | void |