28 return _has_owner_view;
37 _handle_c_updates = handle_c_updates;
46 return _handle_c_updates;
57 _client_datagram = client_datagram;
65 return _client_datagram;
78 _handle_datagrams_internally = handle_datagrams_internally;
86 return _handle_datagrams_internally;
94 return _tcp_header_size;
103 INLINE
void CConnectionRepository::
104 set_python_repository(PyObject *python_repository) {
105 _python_repository = python_repository;
107 #endif // HAVE_PYTHON 141 #ifdef WANT_NATIVE_NET 182 nassertr(offset < (
int)_msg_channels.size(),0);
183 return _msg_channels[offset];
186 INLINE
int CConnectionRepository::
187 get_msg_channel_count()
const {
189 return _msg_channels.size();
225 return _overflow_event_name;
235 return _bundling_msgs > 0;
245 nassertv(_bundling_msgs == 0);
246 _want_message_bundling = flag;
255 return _want_message_bundling;
264 _in_quiet_zone = flag;
273 return _in_quiet_zone;
283 _simulated_disconnect = simulated_disconnect;
293 return _simulated_disconnect;
302 _verbose = !_verbose;
330 _time_warning = time_warning;
338 return _time_warning;
bool get_client_datagram() const
Returns the client_datagram flag.
void set_time_warning(float time_warning)
Directly sets the time_warning field.
DCFile & get_dc_file()
Returns the DCFile object associated with this repository.
bool get_want_message_bundling() const
Returns true if message bundling enabled.
This flavor of ConnectionManager will queue up all of the reset-connection messages from the Connecti...
void set_simulated_disconnect(bool simulated_disconnect)
Sets the simulated disconnect flag.
void toggle_verbose()
Toggles the current setting of the verbose flag.
bool get_verbose() const
Returns the current setting of the verbose flag.
static const std::string & get_overflow_event_name()
Returns event string that will be thrown if the datagram reader queue overflows.
bool get_handle_c_updates() const
Returns true if this repository will process distributed updates internally in C++ code,...
void set_verbose(bool verbose)
Directly sets the verbose flag.
Represents the complete list of Distributed Class descriptions as read from a .dc file.
CHANNEL_TYPE get_msg_channel(int offset=0) const
Returns the channel(s) to which the current message was sent, according to the datagram headers.
bool is_bundling_messages() const
Returns true if repository is queueing outgoing messages into a message bundle.
bool get_simulated_disconnect() const
Returns the simulated disconnect flag.
void set_handle_c_updates(bool handle_c_updates)
Set true to specify this repository should process distributed updates internally in C++ code,...
float get_time_warning() const
Returns the current setting of the time_warning field.
void set_handle_datagrams_internally(bool handle_datagrams_internally)
Sets the handle_datagrams_internally flag.
void get_datagram(Datagram &dg)
Fills the datagram object with the datagram most recently retrieved by check_datagram().
This class handles threaded delivery of datagrams to various TCP or UDP sockets.
void get_datagram_iterator(DatagramIterator &di)
Fills the DatagramIterator object with the iterator for the datagram most recently retrieved by check...
Similar to MutexHolder, but for a reentrant mutex.
CHANNEL_TYPE get_msg_sender() const
Returns the sender ID of the current message, according to the datagram headers.
This flavor of ConnectionReader will read from its sockets and queue up all of the datagrams read for...
void set_client_datagram(bool client_datagram)
Sets the client_datagram flag.
bool has_owner_view() const
Returns true if this repository can have 'owner' views of distributed objects.
unsigned int get_msg_type() const
Returns the security code associated with the current message, according to the datagram headers.
bool get_handle_datagrams_internally() const
Returns the handle_datagrams_internally flag.
A class to retrieve the individual data elements previously stored in a Datagram.
void set_in_quiet_zone(bool flag)
Enables/disables quiet zone mode.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
int get_tcp_header_size() const
Returns the current setting of TCP header size.
bool get_in_quiet_zone() const
Returns true if repository is in quiet zone mode.
void set_want_message_bundling(bool flag)
Enable/disable outbound message bundling.