Public Member Functions | |
| def | __init__ |
| def | askEntity |
| def | connect |
| def | run |
| def | send |
| def | sendEvent |
| def | kill |
Public Attributes | |
| handle | |
| pluginHandle | |
| writer | |
This class manages the network activities of the client. It allows the client to send messages (describing events) to the server.
| def shared.network.NetworkClient.askEntity | ( | self, | |
| ent | |||
| ) |
Ask for an entity
| def shared.network.NetworkClient.run | ( | self | ) |
Main loop of the client's network task. After connecting the socket to the server, wait for orders and handle them immediately until connection ends.
| def shared.network.NetworkClient.sendEvent | ( | self, | |
| obj, | |||
| event | |||
| ) |
Send an event to the server in a formatted way, specifying the id of the object to affect.
1.7.6.1