ChromiumFX/Generated/Remote/CfrServer.cs
/// <summary>
/// Create a new server that binds to |address| and |port|. |address| must be a
/// valid IPv4 or IPv6 address (e.g. 127.0.0.1 or ::1) and |port| must be a port
/// number outside of the reserved range (e.g. between 1025 and 65535 on most
/// platforms). |backlog| is the maximum number of pending connections. A new
/// thread will be created for each CreateServer call (the "dedicated server
/// thread"). It is therefore recommended to use a different CfrServerHandler
/// instance for each CreateServer call to avoid thread safety issues in the
/// CfrServerHandler implementation. The
/// CfrServerHandler.OnServerCreated function will be called on the
/// dedicated server thread to report success or failure. See
/// CfrServerHandler.OnServerCreated documentation for a description of
/// server lifespan.
/// </summary>
/// <remarks>
/// See also the original CEF documentation in
/// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_server_capi.h">cef/include/capi/cef_server_capi.h</see>.
/// </remarks>
Create a new server that binds to |address| and |port|. |address| must be a
valid IPv4 or IPv6 address  and |port| must be a port
number outside of the reserved range . |backlog| is the maximum number of pending connections. A new
thread will be created for each CreateServer call (the "dedicated server
thread"). It is therefore recommended to use a different CfrServerHandler
instance for each CreateServer call to avoid thread safety issues in the
CfrServerHandler implementation. The
CfrServerHandler.OnServerCreated function will be called on the
dedicated server thread to report success or failure. See
CfrServerHandler.OnServerCreated documentation for a description of
server lifespan.
Create a new server that binds to |address| and |port| . |address| must be a valid IPv4 or IPv6 address and |port| must be a port number outside of the reserved range . |backlog| is the maximum number of pending connections . A new thread will be created for each CreateServer call ( the " dedicated server thread " ) . It is therefore recommended to use a different CfrServerHandler instance for each CreateServer call to avoid thread safety issues in the CfrServerHandler implementation . The CfrServerHandler . OnServerCreated function will be called on the dedicated server thread to report success or failure . See CfrServerHandler . OnServerCreated documentation for a description of server lifespan .
public static void Create(string address, ushort port, int backlog, CfrServerHandler handler) {
            var connection = CfxRemoteCallContext.CurrentContext.connection;
            var call = new CfxServerCreateRemoteCall();
            call.address = address;
            call.port = port;
            call.backlog = backlog;
            if(!CfrObject.CheckConnection(handler, connection)) throw new ArgumentException("Render process connection mismatch.", "handler");
            call.handler = CfrObject.Unwrap(handler).ptr;
            call.RequestExecution(connection);
        }
public static void Create ( string address , ushort port , int backlog , CfrServerHandler handler ) { var connection = CfxRemoteCallContext . CurrentContext . connection ; var call = new CfxServerCreateRemoteCall ( ) ; call . address = address ; call . port = port ; call . backlog = backlog ; if ( ! CfrObject . CheckConnection ( handler , connection ) ) throw new ArgumentException ( " " , " " ) ; call . handler = CfrObject . Unwrap ( handler ) . ptr ; call . RequestExecution ( connection ) ; }
Create a new server that binds to |address| and |port|.
Create a new server that binds to |address| and |port| .
address
string
port
ushort
backlog
int
handler
CfrServerHandler
remarks
See also the original CEF documentation in
cef/include/capi/cef_server_capi.h
See also the original CEF documentation in cef / include / capi / cef_server_capi . h