- Jimmy Webb
SocketEvent
SocketEvent Methods
SocketEvent() | Constructor for the SocketEvent class |
Socket() | Returns a reference to the socket object processing the event |
Derived Classes
SocketConnectEvent, SocketReceiveEvent, SocketCloseEvent
See Also
Class Hierarchy, ClientSocket, ServerSocket
public method SocketEvent(Socket AssociatedSocket)
Parameters
AssociatedSocket
The socket associated with the event
Return Value
None
Description
Constructor for the SocketEvent class.
SocketEvent Class
public method<Socket> Socket()
Parameters
None
Return Value
Reference to socket associated with the event
Description
This method returns the socket reference associated with the event. If the actual socket event class is client related, this will be a 'ClientSocket' object, and if it is server related, this will be a 'ServerSocket'.
Each class derived from this class provides a method to get this same socket object with a name (and return type) specific to the type of socket it processes (SocketReceiveEvent and SocketCloseEvent each have a 'ClientSocket()' method and SocketConnectEvent has a 'ServerSocket()' method).
SocketEvent Class