Chameleon and Iguana Plugin C# Class Libraries

Connection Constructor (Socket, Wrapper, ServerSocketListener, Log)

Construct a Connection with the specified socket, listener, and wrapper objects, and a log interface.

[Visual Basic]
Overloads Public Sub New( _
   ByVal clientSocket As Socket, _
   ByVal aWrapper As Wrapper, _
   ByVal aListener As ServerSocketListener, _
   ByVal aLog As Log _
)
[C#]
public Connection(
   Socket clientSocket,
   Wrapper aWrapper,
   ServerSocketListener aListener,
   Log aLog
);

Remarks

The constructor initializes the input/output data streams for the socket and starts the thread.

The wrapper is used to wrap and unwrap message data passed through the data streams. Without a wrapper messages cannot be sent or received. When the log interface is null error messages are written to the console.

See Also

Connection Class | iNTERFACEWARE.Chameleon Namespace | Connection Constructor Overload List