StreamLink.NET  7.1.5-7.1.5-3946-4e293d0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Public Member Functions | List of all members
Caplin.StreamLink.IRawSocketFactory Interface Reference

This interface allows a user application to specify a connection strategy to use when creating Type 1 (direct socket) connections. For example, to negotiate a SOCKS proxy or other custom tunneling requirements. More...

Public Member Functions

Socket CreateSocket (string host, int port)
 This method is called by the library to obtain the socket to be used when connecting to Liberator using a Type 1 (direct socket) connection. More...
 

Detailed Description

This interface allows a user application to specify a connection strategy to use when creating Type 1 (direct socket) connections. For example, to negotiate a SOCKS proxy or other custom tunneling requirements.

Member Function Documentation

Socket Caplin.StreamLink.IRawSocketFactory.CreateSocket ( string  host,
int  port 
)

This method is called by the library to obtain the socket to be used when connecting to Liberator using a Type 1 (direct socket) connection.

This method must return a connected socket. StreamLink will take ownership of this socket when the Type 1 connection is established and will close it as necessary.

Parameters
hostThe Liberator host.
portThe Liberator direct or direct SSL port.
Returns
A connected socket with data consumed up to the first message sent by the Liberator.

Generated on Tue Mar 24 2020 11:57:50 for StreamLink.NET