SocketTools .NET Edition

InternetServer.ConnectEventArgs Class

Provides data for the OnConnect event.

For a list of all members of this type, see InternetServer.ConnectEventArgs Members.

System.Object
   System.EventArgs
      SocketTools.InternetServer.ConnectEventArgs

[Visual Basic]
Public Class InternetServer.ConnectEventArgs
    Inherits EventArgs
[C#]
public class InternetServer.ConnectEventArgs : EventArgs

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

ConnectEventArgs specifies the socket handle for the current client session.

The OnConnect event occurs when the client connection to the server has completed. The Handle property specifies the handle to the client socket that was allocated for the session. This handle can be used with methods such as Read and Write to exchange information with the client.

The ClientAddress property can be used to determine the IP address of the client which established the connection. To terminate the client connection, use the Disconnect method.

Requirements

Namespace: SocketTools

Assembly: SocketTools.InternetServer (in SocketTools.InternetServer.dll)

See Also

InternetServer.ConnectEventArgs Members | SocketTools Namespace | OnConnect Event (SocketTools.InternetServer)