Creates a DOFServer that uses the specified configuration. The new server is associated with the DOF instance that creates it, and only the DOF can accept connections or route operations through it (see DOF). Servers do not start automatically when created. After creating the server, call DOFServer_Start or DOFServer_BeginStart. To stop the server temporarily, call DOFServer_Stop. Stopped servers can be restarted using DOFServer_Start or DOFServer_BeginStart. Each DOFServer instance must be destroyed when it is no longer needed. See DOFServer_Destroy. Destroyed servers cannot be restarted. The internal library tracks references to duplicate servers, so this method can safely be called multiple times with the same configuration without consuming extra resources. Such duplicate servers are frequently needed, especially by nodes that create servers dynamically in response to other method calls. This function may be used to create unicast servers, but not to create multicast servers. Use DOFServer_CreateServer to create multicast servers.
|