IAPI::CreatePoolSocketServerObject

property CreatePoolSocketServerObject.

Creates a TCP/IP and thread pool based server.

 

HRESULT CreatePoolSocketServerObject(
  long listeningPort,
  BSTR host_to_bind,
  long max_connection,
  long ThreadPoolSize,
  long sndbuf_size,
  long recvbuf_size,
  long  *pVal 
 );

Parameters

listeningPort

[in] .   Listening port

host_to_bind

[in] .   Binding to an IP address or NULL (all IP binding)

max_connection

[in] .   Maximum authorized incoming connections

ThreadPoolSize

[in,defaultvalue(8)] .

         Number of worker threads in the thread pool

sndbuf_size

[in,defaultvalue(0)] .

         Custom size in bytes for sending data. (8 Kb is by default)

recvbuf_size

[in,defaultvalue(0)] .

         Custom size in bytes for  receiving data. (8 Kb is by default)

pVal

[out, retval] The returned value is a handle of server object

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI