Lucu-1.0: Embedded HTTP Server

Network.HTTP.Lucu.SocketLike

Description

Type class for things behaves like a Socket.

Documentation

class HandleLike (Handle s) => SocketLike s whereSource

Associated Types

type Handle s :: *Source

Methods

accept :: s -> IO (Handle s, SockAddr)Source

socketPort :: s -> IO PortNumberSource

Instances

SocketLike Socket 
SocketLike (SSLContext, Socket)