You are here: Configuration > Networking Configuration > Pluggable Sockets

Pluggable Sockets

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

IClientConfiguration configuration = Db4oClientServer.NewClientConfiguration();
configuration.Networking.SocketFactory = new StandardSocket4Factory();
NetworkConfigurationExample.cs: Exchange the socket-factory
Dim configuration As IClientConfiguration = Db4oClientServer.NewClientConfiguration()
configuration.Networking.SocketFactory = New StandardSocket4Factory()
NetworkConfigurationExample.vb: 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"