You are here: Configuration > Networking Configuration > Pluggable Sockets

Pluggable Sockets

db4o allows to customize client-server communication by using pluggable socket implementations.

ClientConfiguration configuration = Db4oClientServer.newClientConfiguration();
configuration.networking().socketFactory(new StandardSocket4Factory());
NetworkConfigurationExample.java: Exchange the socket-factory

One use case for changing the socket-implementation is encryption. In fact, db4o's SSL-support uses this mechanism: See "Using SSL For Client-Server Communication"