terom@5: #ifndef NETWORK_HH terom@5: #define NETWORK_HH terom@5: terom@5: #include terom@5: terom@5: #define NETWORK_PORT_STR "9338" terom@5: #define NETWORK_PACKET_MAX 1280 terom@5: terom@5: class NetworkBase { terom@5: protected: terom@5: CL_Socket socket; terom@5: terom@5: NetworkBase () : terom@5: socket(CL_Socket::udp) terom@5: { terom@5: socket.set_nonblocking(true); terom@5: } terom@5: terom@5: NetworkBase (CL_Socket socket) : terom@5: socket(socket) terom@5: { terom@5: socket.set_nonblocking(true); terom@5: } terom@5: }; terom@5: terom@5: #endif