Functional Sockets (FnSock) This library provides a simple sockets API for test code that runs in both user and kernel mode. API Test code can leverage the API by including fnsock.h and linking against fnsock_um.lib/fnsock_km.lib.