Cronous Emulation Server Daemon

TCPSocket Members

TCPSocket overview

Public Static (Shared) Fields

BUFFER_SIZE Buffer size.

Protected Static (Shared) Fields

_temp_buffer Temporary buffer used for sending and receiving operations.

Public Instance Constructors

TCPSocket Constructor Initializes the instance of TCPSocket.

Public Instance Properties

data_available Gets the amount of data available for reading.
end_point End point of connection target.
socket (inherited from TCPSocketHandler) Socket object associated to the handler.
state Socket state.

Public Instance Methods

check (inherited from TCPSocketHandler) Checks for socket validity.
close Closes connection.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
on_available Event to be overrided, notifying data availability.
on_disconnect Event to be overrided, notifying disconnection.
open Opens connection to end_point.
post_open (inherited from TCPSocketHandler) Adds the socket to the event manager.
pre_close (inherited from TCPSocketHandler) Removes the socket from the event manager.
process_error Function called when an error occurs during the polling.
process_read Processes reading.
process_write Processes writing.
receiveOverloaded. Receives a piece of data.
sendOverloaded. Pushes data to be sent.
ToString (inherited from Object) Returns a String that represents the current Object.
wants_reading_notification Check whether the socket wants to process reading.
wants_writing_notification Check whether the socket wants to process writing.

Protected Instance Fields

_can_send Specifies whether the socket is ready to send data.
_end_point End point of connection target.
_receive_buf Buffer for data reception.
_send_buf Buffer for data transmission.
_socket (inherited from TCPSocketHandler) Socket object associated to the handler.
_state Socket state.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
send_now Sends data immediately.

See Also

TCPSocket Class | croemud.connection Namespace