leksah-server-0.8.0.6: Metadata collection for leksahSource codeContentsIndex
IDE.Utils.Server
Description
Synopsis
ipAddress :: (Word8, Word8, Word8, Word8) -> HostAddress
data Server = Server {
serverAddr :: SockAddr
serverTyp :: SocketType
serverRoutine :: ServerRoutine
}
serveOne :: Maybe UserAndGroup -> Server -> IO (ThreadId, MVar ())
serveMany :: Maybe UserAndGroup -> [Server] -> IO [(ThreadId, MVar ())]
type ServerRoutine = (Handle, HostName, PortNumber) -> IO ()
data UserAndGroup
= UserAndGroup String String
| UserWithDefaultGroup String
class WaitFor a where
waitFor :: a -> IO ()
Documentation
ipAddress :: (Word8, Word8, Word8, Word8) -> HostAddressSource
make an IP Address: (127,0,0,1) is the localhost
data Server Source
the specification of a serving process
Constructors
Server
serverAddr :: SockAddr
serverTyp :: SocketType
serverRoutine :: ServerRoutine
serveOne :: Maybe UserAndGroup -> Server -> IO (ThreadId, MVar ())Source
serveMany :: Maybe UserAndGroup -> [Server] -> IO [(ThreadId, MVar ())]Source
type ServerRoutine = (Handle, HostName, PortNumber) -> IO ()Source
the functionality of a server
data UserAndGroup Source
Constructors
UserAndGroup String String
UserWithDefaultGroup String
class WaitFor a whereSource
Methods
waitFor :: a -> IO ()Source
show/hide Instances
Produced by Haddock version 2.6.1