]> git.tdb.fi Git - libs/net.git/blob - source/datagramsocket.h
Add function to check if handshake is done
[libs/net.git] / source / datagramsocket.h
1 /* $Id$
2
3 This file is part of libmspnet
4 Copyright © 2008  Mikkosoft Productions, Mikko Rasa
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_NET_DATAGRAMSOCKET_H_
9 #define MSP_NET_DATAGRAMSOCKET_H_
10
11 #include "socket.h"
12
13 namespace Msp {
14 namespace Net {
15
16 class DatagramSocket: public Socket
17 {
18 public:
19         DatagramSocket(Family, int =0);
20         int connect(const SockAddr &);
21         unsigned sendto(const char *, unsigned, const SockAddr &);
22         unsigned recvfrom(char *, unsigned, SockAddr *&);
23 };
24
25 } // namespace Net
26 } // namespace Msp
27
28 #endif