15 #include "pandabase.h"
17 #include "datagramSinkNet.h"
46 return send(data, _target,
true);
Base functionality for a INET domain Socket this call should be the starting point for all other unix...
The primary interface to the low-level networking layer in this package.
bool send(const Datagram &datagram, const PT(Connection)&connection, bool block=false)
Enqueues a datagram for transmittal on the indicated socket.
virtual void flush()
Ensures that all datagrams previously written will be visible on the stream.
virtual bool put_datagram(const Datagram &data)
Sends the given datagram to the target.
This class handles threaded delivery of datagrams to various TCP or UDP sockets.
DatagramSinkNet(ConnectionManager *manager, int num_threads)
Creates a new DatagramSinkNet with the indicated number of threads to handle writing.
virtual bool is_error()
Returns true if there is an error on the target connection, or if the target has never been set...
Represents a single TCP or UDP socket for input or output.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...