载入中...
搜索中...
未找到
UdpSocket.cpp
浏览该文件的文档.
83 self->sock_->sendTo(buf->data(), static_cast<int>(buf->size()), Poco::Net::SocketAddress(host, port));
In-memory byte buffer implementing eve::Data (ref-counted).
Definition ByteData.h:13
void submit(std::function< void()> job)
Queues an arbitrary blocking job to run on the worker thread.
Definition NetWorker.cpp:38
Network module: TCP/UDP/HTTP factories, background worker, and completion event plumbing....
Definition Network.h:35
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:98
bool sendString(std::string s)
Sends a string datagram to the connected peer.
Definition UdpSocket.cpp:128
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:104
Definition Channel.cpp:12
One asynchronous network result/event. handle points at the originating TcpSocket/UdpSocket/HttpReque...
Definition NetTypes.h:33