c10k-0.4.0: C10k server library using prefork

Network.TCPInfo

Description

Yet another accept() to tell TCP information.

Synopsis

Documentation

data TCPInfo Source

A Type to carry TCP information.

Constructors

TCPInfo 

Fields

myAddr :: HostName

Local IP address

myPort :: ServiceName

Local port number

peerAddr :: HostName

Remote IP address

peerPort :: ServiceName

Remote port number

Instances

accept :: Socket -> IO (Handle, TCPInfo)Source

Yet another accept() to return both Handle and TCPInfo.