Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

ServerModuleHost.Accept Method

Namespace: Rebex.Net.Servers.Core
Assembly: Rebex.FileServer.dll (version 8.0.9673)

Accept(Socket)

Starts handling accepted connection.

Declaration
public void Accept(Socket socket)
Parameters
Type Name Description
Socket socket

Connection with the client.

Accept(Socket, EndPoint, EndPoint)

Starts handling accepted connection.

Declaration
public void Accept(Socket socket, EndPoint localEndPoint, EndPoint remoteEndPoint)
Parameters
Type Name Description
Socket socket

Connection with the client.

EndPoint localEndPoint

Local endpoint to which the client has connected.

EndPoint remoteEndPoint

Remote endpoint from which the client has connected.

Accept(Stream, Object, EndPoint, EndPoint)

Starts server session on the supplied stream. Only supports SSH.

Declaration
public void Accept(Stream stream, object context, EndPoint localEndPoint, EndPoint remoteEndPoint)
Parameters
Type Name Description
Stream stream

Stream that represents communication channel with the client.

Object context

An optional custom object representing the session context.

EndPoint localEndPoint

Local endpoint to which the client has connected.

EndPoint remoteEndPoint

Remote endpoint from which the client has connected.

In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies