Sending and Receiving Data
The diagram given below shows a simple example of an Internet connection between two computers and a series of function calls used when sending and receiving data.
Computer A |
Action |
Computer B |
|
Step 1. ----------------------------------> If the connection process from the Computer A side was successful go to step 2. |
|
|
Step 2. OnConnectRequest callback function will be generated on Computer B. side in response to the connection request from Computer A. |
|
|
Step 3. <----------------------------------- |
|
|
Connection established. And Computer A wants to send some kind of data, for example image data: Step 4. ----------------------------------> |
|
|
Step 5. On the Computer A side, the following callback functions are generated to let Computer A know the data is being sent or has been sent: ------------------------------------> LInet::OnDataStart |
LInet::OnDataStart
|