mirror of
https://github.com/ShaYmez/xlxd.git
synced 2025-08-02 05:22:26 -04:00
UDM Msg update
Fix for sockopt on open
This commit is contained in:
parent
a81d1743a8
commit
887edaf00d
@ -26,6 +26,20 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "cudpmsgsocket.h"
|
#include "cudpmsgsocket.h"
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// open
|
||||||
|
bool CUdpMsgSocket::Open(uint16 uiPort)
|
||||||
|
{
|
||||||
|
bool ret;
|
||||||
|
int on = 1;
|
||||||
|
|
||||||
|
ret = CUdpSocket::Open(uiPort);
|
||||||
|
setsockopt(m_Socket, IPPROTO_IP, IP_PKTINFO, (char *)&on, sizeof(on));
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// read
|
// read
|
||||||
|
|
||||||
|
@ -39,6 +39,9 @@
|
|||||||
class CUdpMsgSocket : public CUdpSocket
|
class CUdpMsgSocket : public CUdpSocket
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
// open
|
||||||
|
bool Open(uint16);
|
||||||
|
|
||||||
// read
|
// read
|
||||||
int Receive(CBuffer *, CIp *, int);
|
int Receive(CBuffer *, CIp *, int);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user