-
Notifications
You must be signed in to change notification settings - Fork 5
Networking events
Wikiti edited this page Jan 3, 2017
·
3 revisions
As stated before, this library is based on events and event-drive programming. The following events are available in networking.utils.NetworkEvent
:
- Server: Server successfully binded to the given ip and port.
- Client: Client connected to the server successfully.
- Server: Server could not bind the given ip and port.
- Client: Client could not connect to the server.
- Server: New client connected.
- Client: Client connected to the server (after INIT_SUCCESS).
- Server: Client disconnected (due to an error or voluntarily).
- Client: Disconnected from the server (kicked or due to an error), which means that the socket is closed (asynchronously).
-
Server: Session closed (called on
session.stop()
orNetwork.destroySession(session)
). -
Client: Disconnected from the server (voluntarily) by closing the session (called on
session.stop()
orNetwork.destroySession(session)
).
- Server: Message recieved from a client.
- Client: Message recieved from the server.
- Server: Message sent to a client.
- Client: Message sent to the server.
- Server: An error occurred while sending a message to a specific client.
- Client: An error occurred while sending a message to the server.
- Server: Send message to all clients.
- Client: Unused.
- Server: Something went wrong while sending a broadcast message.
- Client: Unused.
- Server: A client tried to connect to the server, which is full.
- Client: The client tried to connect to a full server.
- Server: Something went wrong while creating a policy file server.
- Client: Unused.