载入中...
搜索中...
未找到
UdpSocket.cpp
浏览该文件的文档.
In-memory byte buffer implementing eve::Data (ref-counted).
Definition ByteData.h:11
void submit(std::function< void()> job)
Queues an arbitrary blocking job to run on the worker thread.
Definition NetWorker.cpp:40
Network module: TCP/UDP/HTTP factories, background worker, and completion event plumbing....
Definition Network.h:30
void post(NetCompletion c)
Posts a completion to the worker queue (thread-safe).
Definition Network.cpp:167
bool sendTo(eve::data::ByteData *data, std::string host, uint16_t port)
Sends a datagram to an explicit host:port.
Definition UdpSocket.cpp:70
Poco::Net::DatagramSocket * datagram()
Internal: underlying Poco datagram socket.
Definition UdpSocket.cpp:18
UdpSocket(Network *net)
Creates an unbound socket owned by the given module.
Definition UdpSocket.cpp:12
bool sendToString(std::string s, std::string host, uint16_t port)
Sends a string datagram to an explicit host:port.
Definition UdpSocket.cpp:94
bool sendString(std::string s)
Sends a string datagram to the connected peer.
Definition UdpSocket.cpp:123
bool connect(std::string host, uint16_t port)
Connects to a remote host:port (restricts send()).
Definition UdpSocket.cpp:47
bool send(eve::data::ByteData *data)
Sends a datagram to the connected peer.
Definition UdpSocket.cpp:100
Definition Channel.cpp:12
One asynchronous network result/event. handle points at the originating TcpSocket/UdpSocket/HttpReque...
Definition NetTypes.h:33