simple-socket library 1.2.0
UnixDatagramSocket.h
Go to the documentation of this file.
1#ifndef NET_UnixDatagramSocket_h__
2#define NET_UnixDatagramSocket_h__
3
4#include "UnixSocket.h"
5
6namespace NET
7{
10 {
11 public:
17
27 void sendTo( const void* buffer, size_t len, std::string_view foreignPath);
28
39 int receiveFrom( void* buffer, size_t len, std::string& sourcePath);
40
54 int timedReceiveFrom( void* buffer, size_t len, std::string& sourcePath, int timeout);
55 };
56
57} // namespace NET
58
59#endif // NET_UnixDatagramSocket_h__
static const int len
Definition CANFrame.h:7
void sendTo(const void *buffer, size_t len, std::string_view foreignPath)
int timedReceiveFrom(void *buffer, size_t len, std::string &sourcePath, int timeout)
int receiveFrom(void *buffer, size_t len, std::string &sourcePath)
UnixSocket(int type, int protocol)
allows a subclass to create new socket