Introduction Manual Class Reference Header Reference

Test Run With Communication

Program Output

The lines starting with [Client] and [Server] are log messages generated by Zoidcom. The lines embraced in < > are comments inserted after the run.

Server

<...>
Processing input...
Processing output...
Processing input...
Processing output...
Processing input...
<Here the connection packet is detected>
[Server]: inserting node of class [ZC0M]
[Server]: incoming connection request from UDP: 127.0.0.1:33009 (control id: 0)
A client requested connection - the new id is [1].
Connection Accepted.
Processing output...
<The connection result is sent back>
[Server]: new outgoing bandwidth for 1: 200 bpp / 15 pps
Processing input...
<The client's request is received>
New connection with id [1]
The client requested our message 9 number of times.
Sending #1
Sending #2
Sending #3
Sending #4
Sending #5
Sending #6
Sending #7
Sending #8
Sending #9
Processing output...
<The messages are sent here>
<CTRL+C>

Notice this line:

[Server]: new outgoing bandwidth for 1: 200 bpp / 15 pps

It states, that the server will send no more than 15 packets per second.

Client

When reading carefully, you'll notice that not all 9 messages are received at the same time. The first 8 are received in one packet, the last one is received in a later packet. The server doesn't send a packet each time it calls ZCom_processOutput(). When you look at the comments to the client output, you will see that the server sets the connection quality to 15 packets per seconds. The mainloop in the client runs far faster than 15 iterations per second, that's why there are a lot of eventless iterations between the receival of the first 8 and the last message.

Connecting...
<Connection process starts here>
[Client/1]: connecting to UDP: localhost:10000 (control id: 0)
Processing input...
Processing output...
<Zoidcom resolved the hostname>
ZCom_Address: resolved hostname 'localhost' to 127.0.0.1
Processing input...
Processing output...
<Zoidcom sends the connection request>
[Client]: inserting node of class [ZC0M]
Processing input...
Processing output...
Processing input...
<Zoidcom receives the connection result>
[Client/1]: peer accepted connection request
Connection established. The reply was: Password Correct.
Requesting 9 strings...
Processing output...
<The request is sent here>
Processing input...
<Zoidcom server requested connection parameters, handled internally>
[Client/1]: peer requested new connection quality: 200 bpp/15 pps
Processing output...
[Client]: new outgoing bandwidth for 1: 200 bpp / 15 pps
<It takes some time until server's messages get here>
Processing input...
Processing output...
Processing input...
Processing output...
Processing input...
Processing output...
Processing input...
Processing output...
Processing input...
Processing output...
Processing input...
Processing output...
Processing input...
Processing output...
Processing input...
Processing output...
Processing input...
Processing output...
Processing input...
Processing output...
Processing input...
Processing output...
Processing input...
<A packet containing 8 messages arrived>
Received a string: Hello from Server
Received a string: Hello from Server
Received a string: Hello from Server
Received a string: Hello from Server
Received a string: Hello from Server
Received a string: Hello from Server
Received a string: Hello from Server
Received a string: Hello from Server
Processing output...
Processing input...
Processing output...
Processing input...
Processing output...
Processing input...
Processing output...
Processing input...
<The packet containing the last message arrived>
Received a string: Hello from Server
Processing output...
Processing input...
Processing output...
Processing input...
<CTRL+C>

This file is part of the documentation for Zoidcom. Documentation copyright © 2004-2008 by Jörg Rüppel. Generated on Sat Aug 16 15:26:51 2008 for Zoidcom by doxygen 1.4.6-NO