StreamLink.NET
CreateSocket Method (host, port)
StreamLink.NETCaplin.StreamLink.ConfigurationIRawSocketFactoryCreateSocket(String, Int32)
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.
Declaration Syntax
C#Visual BasicVisual C++
Socket CreateSocket(
	string host,
	int port
)
Function CreateSocket ( _
	host As String, _
	port As Integer _
) As Socket
Socket^ CreateSocket(
	String^ host, 
	int port
)
Parameters
host (String)
The Liberator host.
port (Int32)
The Liberator direct or direct SSL port.
Return Value
A connected socket with data consumed up to the first message sent by the Liberator.
Remarks
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.

Assembly: Caplin.StreamLink (Module: Caplin.StreamLink) Version: 5.0.17.0 (5.0.17.0)