Thresher 1.2 Class Documentation

DccChatSession.Request Method (DccUserInfo, String, Int32)

Send a DCC Chat request to a remote user and use the default timeout period of 30 seconds.

[Visual Basic]
Overloads Public Shared Function Request( _
   ByVal dccUserInfo As DccUserInfo, _
   ByVal listenIPAddress As String, _
   ByVal listenPort As Integer _
) As DccChatSession
[C#]
public static DccChatSession Request(
   DccUserInfo dccUserInfo,
   string listenIPAddress,
   int listenPort
);

Parameters

dccUserInfo
A collection of information about the remote user.
listenIPAddress
The IP address of the local machine in dot quad format (e.g. 192.168.0.25). This is the address that will be sent to the remote user. The IP address of the NAT machine must be used if the client is behind a a NAT/Firewall system.
listenPort
The TCP/IP port to listen on

Remarks

If the user does not respond within the timeout period the DccChatSession will stop listening for a connection. The sesssion instance created then becomes invalid. This methods must be called again and a new instance created in order to initiate a try again.

This method should be called from within a try/catch block in case there are socket errors.

See Also

DccChatSession Class | Sharkbite.Irc Namespace | DccChatSession.Request Overload List