Thresher 1.2 Class Documentation

DccFileSession.Receive Method 

Another user has offered to send a file. This method should be called to accept the offer and save the file to the give location. The parameters needed to call this method are provided by the OnDccFileTransferRequest() event.

[Visual Basic]
Public Shared Function Receive( _
   ByVal dccUserInfo As DccUserInfo, _
   ByVal dccFileInfo As DccFileInfo, _
   ByVal turbo As Boolean _
) As DccFileSession
[C#]
public static DccFileSession Receive(
   DccUserInfo dccUserInfo,
   DccFileInfo dccFileInfo,
   bool turbo
);

Parameters

dccUserInfo
Information on the remote user.
dccFileInfo
The local file that will hold the data being sent. If the file is the result of a previous incomplete download the the attempt will be made to resume where the previous left off.
turbo
Will the send ahead protocol be used.

Return Value

A unique session instance for this file and remote user.

Remarks

This method should be called from within a try/catch block in case it is unable to connect or there are other socket errors.

Exceptions

Exception TypeCondition
ArgumentExceptionIf the listen port is already in use.

See Also

DccFileSession Class | Sharkbite.Irc Namespace