Module OcsfmlNetwork

module OcsfmlNetwork: sig .. end
Networking management

class ip_address : [ `Bytes of int * int * int * int
| `Copy of < rep__sf_IpAddress : IPAddressBase.t; .. >
| `Int of int
| `None
| `String of string ] ->
object .. end
Encapsulate an IPv4 network address.
module IPAddress: sig .. end
module FTP: sig .. end
module HTTP: sig .. end
class packet : object .. end
Utility class to build blocks of data to transfer over the network.
type read_val = [ `Bool of bool Pervasives.ref
| `Float of float Pervasives.ref
| `Int16 of int Pervasives.ref
| `Int32 of int Pervasives.ref
| `Int8 of int Pervasives.ref
| `String of string Pervasives.ref
| `UInt16 of int Pervasives.ref
| `UInt32 of int Pervasives.ref
| `UInt8 of int Pervasives.ref ]
type write_val = [ `Bool of bool
| `Float of float
| `Int16 of int
| `Int32 of int
| `Int8 of int
| `String of string
| `UInt16 of int
| `UInt32 of int
| `UInt8 of int ]
val (>>) : (#packet as 'a) ->
[< `Bool of bool Pervasives.ref
| `Float of float Pervasives.ref
| `Int16 of int Pervasives.ref
| `Int32 of int Pervasives.ref
| `Int8 of int Pervasives.ref
| `String of string Pervasives.ref
| `UInt16 of int Pervasives.ref
| `UInt32 of int Pervasives.ref
| `UInt8 of int Pervasives.ref ] ->
'a
val (<<) : (#packet as 'a) ->
[< `Bool of bool
| `Float of float
| `Int16 of int
| `Int32 of int
| `Int8 of int
| `String of string
| `UInt16 of int
| `UInt32 of int
| `UInt8 of int ] ->
'a
type socket_status = 
| Done (*The socket has sent / received the data.*)
| NotReady (*The socket is not ready to send / receive data yet.*)
| Disconnected (*The TCP socket has been disconnected.*)
| Error (*An unexpected error happened.*)
Status codes that may be returned by socket functions.
class socket : Socket.t -> object .. end
Base class for all the socket types.
class socket_selector : object .. end
Multiplexer that allows to read from multiple sockets.
module Port: sig .. end
class tcp_socket : object .. end
Specialized socket using the TCP protocol.
class tcp_listener : object .. end
Socket that listens to new TCP connections.
val max_datagram_size : int
class udp_socket : object .. end
Specialized socket using the UDP protocol.