db4o

Db4o.openServer Method 

opens an ObjectServer on the specified database file and port.

If the server does not need to listen on a port because it will only be used in embedded mode with com.db4o.ObjectServer.openClient , specify '0' as the port number.

[Visual Basic]
Shared Public Function openServer( _ 
   ByVal databaseFileName As String, _ 
   ByVal port As Integer _ 
) As ObjectServer
[C#]
public static ObjectServer openServer(
   string databaseFileName,
   int port
);
[C++]
public: static ObjectServer* openServer(
   String* databaseFileName,
   int port
);
[JScript]
public static function openServer(
   String databaseFileName,
   int port
): ObjectServer;

Parameters

databaseFileName
the full path to the database file
port
the port to be used, or 0, if the server should not open a port, because it will only be used with com.db4o.ObjectServer.openClient

Return Value

an ObjectServer listening on the specified port.

See Also

Db4o Class | com.db4o Namespace | com.db4o.config.Configuration.readOnly | com.db4o.config.Configuration.encrypt | com.db4o.config.Configuration.password