simple-socket library 1.5.0
Loading...
Searching...
No Matches
UnixDatagramSocket.h
1#ifndef NET_UnixDatagramSocket_h__
2#define NET_UnixDatagramSocket_h__
3
4#include "UnixSocket.h"
5
6namespace NET
7{
10 {
11 public:
17
26 void sendTo( const void* buffer, size_t len, std::string_view foreignPath);
27
38 int receiveFrom( void* buffer, size_t len, std::string& sourcePath);
39
53 int timedReceiveFrom( void* buffer, size_t len, std::string& sourcePath, int timeout);
54 };
55
56} // namespace NET
57
58#endif // NET_UnixDatagramSocket_h__
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
Definition UnixSocket.cpp:9