Module socket

Module socket 

Source
Expand description

Socket related definitions

Structs§

SocketManager
Manager of socket listeners
SocketPacket
Socket packet
SocketPool
Pool of messages for socket implementations

Enums§

SocketError
Enumeration of various errors during sending and parsing packets

Traits§

SocketData
Trait for serialization and deserialization util functions
SocketListener
Socket listener, something that can listen in to socket connections

Functions§

check_packet_for_data
Checks if packet is of a certain type, for requests without any parameters
parse_packet_to_data
Attempts to parse socket data into a specified type
send_event_to_socket
Puts together an event packet and sends it
send_no_data_packet_with_requester
Sends a packet with included requester ID from previous package, without data
send_no_data_packet_with_requester_sync
Sends a packet with included requester ID from previous package, without data, with sync IO
send_packet
Sends a packet with included requester ID from previous package
send_packet_as_is
Sends a packet as is
send_packet_as_is_sync
Sends a packet as is with sync IO
send_packet_sync
Sends a packet with included requester ID from previous package with sync IO
send_packet_with_requester
Sends a packet with included requester ID from previous package
send_packet_with_requester_sync
Sends a packet with included requester ID from previous package with sync IO
write_in_chunks
Writes bytes in chunks
write_in_chunks_sync
Writes bytes in chunks with sync IO

Type Aliases§

SocketHandle
Type for listener’s socket handles
UniqueSocketListener
Boxed socket listener