35 return _has_owner_view;
47 _handle_c_updates = handle_c_updates;
59 return _handle_c_updates;
74 _client_datagram = client_datagram;
84 return _client_datagram;
101 _handle_datagrams_internally = handle_datagrams_internally;
111 return _handle_datagrams_internally;
122 return _tcp_header_size;
134 INLINE
void CConnectionRepository::
135 set_python_repository(PyObject *python_repository) {
136 _python_repository = python_repository;
138 #endif // HAVE_PYTHON
181 #ifdef WANT_NATIVE_NET
232 nassertr(offset < (
int)_msg_channels.size(),0);
233 return _msg_channels[offset];
236 INLINE
int CConnectionRepository::
237 get_msg_channel_count()
const {
239 return _msg_channels.size();
287 return _overflow_event_name;
299 return _bundling_msgs > 0;
311 nassertv(_bundling_msgs == 0);
312 _want_message_bundling = flag;
323 return _want_message_bundling;
334 _in_quiet_zone = flag;
345 return _in_quiet_zone;
358 _simulated_disconnect = simulated_disconnect;
371 return _simulated_disconnect;
383 _verbose = !_verbose;
419 _time_warning = time_warning;
429 return _time_warning;
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.
This flavor of ConnectionManager will queue up all of the reset-connection messages from the Connecti...
bool get_handle_c_updates() const
Returns true if this repository will process distributed updates internally in C++ code...
unsigned int get_msg_type() const
Returns the security code associated with the current message, according to the datagram headers...
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_want_message_bundling() const
Returns true if message bundling enabled.
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 get_in_quiet_zone() const
Returns true if repository is in quiet zone mode.
void set_verbose(bool verbose)
Directly sets the verbose flag.
bool get_simulated_disconnect() const
Returns the simulated disconnect flag.
Represents the complete list of Distributed Class descriptions as read from a .dc file...
bool is_bundling_messages() const
Returns true if repository is queueing outgoing messages into a message bundle.
void set_handle_c_updates(bool handle_c_updates)
Set true to specify this repository should process distributed updates internally in C++ code...
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.
bool get_client_datagram() const
Returns the client_datagram flag.
bool get_handle_datagrams_internally() const
Returns the handle_datagrams_internally flag.
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.
A class to retrieve the individual data elements previously stored in a Datagram. ...
bool has_owner_view() const
Returns true if this repository can have 'owner' views of distributed objects.
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 ...
bool get_verbose() const
Returns the current setting of the verbose flag.
float get_time_warning() const
Returns the current setting of the time_warning field.
int get_tcp_header_size() const
Returns the current setting of TCP header size.
void set_want_message_bundling(bool flag)
Enable/disable outbound message bundling.
static const string & get_overflow_event_name()
Returns event string that will be thrown if the datagram reader queue overflows.