class XrlSocketServer


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods

Protected Types

Protected Methods

Protected Members


Detailed Description

 XrlSocketServer (EventLoop& eventloop, AddressTableBase& addr_table, const IPv4& finder_host, uint16_t finder_port)

XrlSocketServer

 ~XrlSocketServer ()

~XrlSocketServer

bool  startup ()

startup

Start XrlSocketServer.

Causes instance to register Xrls with the Finder subsequently become operational.

Returns: true on success, false on failure.

Reimplemented from ServiceBase.

bool  shutdown ()

shutdown

Shutdown XrlSocketServer.

Returns: true on success, false on failure.

Reimplemented from ServiceBase.

uint32_t  socket_owner_count ()

socket_owner_count

[const]

Get count of number of socket owners. These are XrlTargets that own one or more sockets.

uint32_t  ipv4_socket_count ()

ipv4_socket_count

[const]

Get count of number of IPv4 sockets open.

uint32_t  ipv6_socket_count ()

ipv6_socket_count

[const]

Get count of number of IPv6 sockets open.

XrlCmdError  common_0_1_get_target_name (string& name)

common_0_1_get_target_name

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  common_0_1_get_version (string& version)

common_0_1_get_version

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  common_0_1_get_status (uint32_t& status_code, string& reason)

common_0_1_get_status

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  common_0_1_shutdown ()

common_0_1_shutdown

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  finder_event_observer_0_1_xrl_target_birth (const string& clsname, const string& instance)

finder_event_observer_0_1_xrl_target_birth

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  finder_event_observer_0_1_xrl_target_death (const string& clsname, const string& instance)

finder_event_observer_0_1_xrl_target_death

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket4_0_1_tcp_open_and_bind (const string& creator, const IPv4& local_addr, const uint32_t& local_port, const bool& is_blocking, string& sockid)

socket4_0_1_tcp_open_and_bind

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket4_0_1_udp_open_and_bind (const string& creator, const IPv4& local_addr, const uint32_t& local_port, const bool& is_blocking, string& sockid)

socket4_0_1_udp_open_and_bind

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket4_0_1_udp_open_bind_join (const string& creator, const IPv4& local_addr, const uint32_t& local_port, const IPv4& mcast_addr, const uint32_t& ttl, const bool& reuse, const bool& is_blocking, string& sockid)

socket4_0_1_udp_open_bind_join

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket4_0_1_tcp_open_bind_connect (const string& creator, const IPv4& local_addr, const uint32_t& local_port, const IPv4& remote_addr, const uint32_t& remote_port, const bool& is_blocking, string& sockid)

socket4_0_1_tcp_open_bind_connect

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket4_0_1_udp_open_bind_connect (const string& creator, const IPv4& local_addr, const uint32_t& local_port, const IPv4& remote_addr, const uint32_t& remote_port, const bool& is_blocking, string& sockid)

socket4_0_1_udp_open_bind_connect

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket4_0_1_udp_join_group (const string& sockid, const IPv4& group, const IPv4& if_addr)

socket4_0_1_udp_join_group

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket4_0_1_udp_leave_group (const string& sockid, const IPv4& group, const IPv4& if_addr)

socket4_0_1_udp_leave_group

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket4_0_1_close (const string& sockid)

socket4_0_1_close

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket4_0_1_tcp_listen (const string& sockid, const uint32_t& backlog)

socket4_0_1_tcp_listen

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket4_0_1_send (const string& sockid, const vector<uint8_t>& data)

socket4_0_1_send

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket4_0_1_send_with_flags (const string& sockid, const vector<uint8_t>& data, const bool& out_of_band, const bool& end_of_record, const bool& end_of_file)

socket4_0_1_send_with_flags

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket4_0_1_send_to (const string& sockid, const IPv4& remote_addr, const uint32_t& remote_port, const vector<uint8_t>& data)

socket4_0_1_send_to

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket4_0_1_send_to_with_flags (const string& sockid, const IPv4& remote_addr, const uint32_t& remote_port, const vector<uint8_t>& data, const bool& out_of_band, const bool& end_of_record, const bool& end_of_file)

socket4_0_1_send_to_with_flags

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket4_0_1_send_from_multicast_if ( const string& sockid, const IPv4& group_addr, const uint32_t& group_port, const IPv4& if_addr, const vector<uint8_t>& data )

socket4_0_1_send_from_multicast_if

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket4_0_1_set_socket_option (const string& sockid, const string& optname, const uint32_t& optval)

socket4_0_1_set_socket_option

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket4_0_1_get_socket_option (const string& sockid, const string& optname, uint32_t& optval)

socket4_0_1_get_socket_option

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket6_0_1_tcp_open_and_bind (const string& creator, const IPv6& local_addr, const uint32_t& local_port, const bool& is_blocking, string& sockid)

socket6_0_1_tcp_open_and_bind

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket6_0_1_udp_open_and_bind (const string& creator, const IPv6& local_addr, const uint32_t& local_port, const bool& is_blocking, string& sockid)

socket6_0_1_udp_open_and_bind

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket6_0_1_udp_open_bind_join (const string& creator, const IPv6& local_addr, const uint32_t& local_port, const IPv6& mcast_addr, const uint32_t& ttl, const bool& reuse, const bool& is_blocking, string& sockid)

socket6_0_1_udp_open_bind_join

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket6_0_1_tcp_open_bind_connect (const string& creator, const IPv6& local_addr, const uint32_t& local_port, const IPv6& remote_addr, const uint32_t& remote_port, const bool& is_blocking, string& sockid)

socket6_0_1_tcp_open_bind_connect

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket6_0_1_udp_open_bind_connect (const string& creator, const IPv6& local_addr, const uint32_t& local_port, const IPv6& remote_addr, const uint32_t& remote_port, const bool& is_blocking, string& sockid)

socket6_0_1_udp_open_bind_connect

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket6_0_1_udp_join_group (const string& sockid, const IPv6& group, const IPv6& if_addr)

socket6_0_1_udp_join_group

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket6_0_1_udp_leave_group (const string& sockid, const IPv6& group, const IPv6& if_addr)

socket6_0_1_udp_leave_group

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket6_0_1_close (const string& sockid)

socket6_0_1_close

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket6_0_1_tcp_listen (const string& sockid, const uint32_t& backlog)

socket6_0_1_tcp_listen

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket6_0_1_send (const string& sockid, const vector<uint8_t>& data)

socket6_0_1_send

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket6_0_1_send_with_flags (const string& sockid, const vector<uint8_t>& data, const bool& out_of_band, const bool& end_of_record, const bool& end_of_file)

socket6_0_1_send_with_flags

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket6_0_1_send_to (const string& sockid, const IPv6& remote_addr, const uint32_t& remote_port, const vector<uint8_t>& data)

socket6_0_1_send_to

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket6_0_1_send_to_with_flags (const string& sockid, const IPv6& remote_addr, const uint32_t& remote_port, const vector<uint8_t>& data, const bool& out_of_band, const bool& end_of_record, const bool& end_of_file)

socket6_0_1_send_to_with_flags

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket6_0_1_send_from_multicast_if ( const string& sockid, const IPv6& group_addr, const uint32_t& group_port, const IPv6& if_addr, const vector<uint8_t>& data )

socket6_0_1_send_from_multicast_if

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket6_0_1_set_socket_option (const string& sockid, const string& optname, const uint32_t& optval)

socket6_0_1_set_socket_option

Reimplemented from XrlSocketServerTargetBase.

XrlCmdError  socket6_0_1_get_socket_option (const string& sockid, const string& optname, uint32_t& optval)

socket6_0_1_get_socket_option

Reimplemented from XrlSocketServerTargetBase.

const string&  instance_name ()

instance_name

[const]

void  xrl_router_ready (const string& tgtname)

xrl_router_ready

void  reject_connection (const string& sockid)

reject_connection

void  accept_connection (const string& sockid)

accept_connection

inline EventLoop&  eventloop ()

eventloop

inline const EventLoop&  eventloop ()

eventloop

[const]

inline const AddressTableBase&  address_table ()

address_table

[const]

void  invalidate_address (const IPv4& addr, const string& why)

invalidate_address

[protected]

Reimplemented from AddressTableEventObserver.

void  invalidate_address (const IPv6& addr, const string& why)

invalidate_address

[protected]

Reimplemented from AddressTableEventObserver.

RemoteSocketOwner (struct)

RemoteSocketOwner

[protected]

RemoteSocketOwner*  find_or_create_owner (const string& xrl_target_name)

find_or_create_owner

RemoteSocketOwner*  find_owner (const string& xrl_target_name)

find_owner

void  destroy_owner (const string& xrl_target)

destroy_owner

void  add_owner_watch (const string& xrl_target_name)

add_owner_watch

void  add_owner_watch_cb (const XrlError& xe, string xrl_target_name)

add_owner_watch_cb

void  remove_owner_watch (const string& xrl_target_name)

remove_owner_watch

void  remove_owner_watch_cb (const XrlError& xe, string xrl_target_name)

remove_owner_watch_cb

void  remove_sockets_owned_by (const string& xrl_target_name)

remove_sockets_owned_by

RemoteSocket (struct)

RemoteSocket

void  push_socket (const ref_ptr<RemoteSocket<IPv4> >& s)

push_socket

void  push_socket (const ref_ptr<RemoteSocket<IPv6> >& s)

push_socket

typedef list<ref_ptr<RemoteSocket<IPv4> > > V4Sockets

V4Sockets

typedef list<ref_ptr<RemoteSocket<IPv6> > > V6Sockets

V6Sockets

EventLoop& _eventloop

_eventloop

[protected]

XrlRouter* _r

_r

[protected]

AddressTableBase& _atable

_atable

[protected]

map<string, RemoteSocketOwner> _socket_owners

_socket_owners

[protected]

V4Sockets _v4sockets

_v4sockets

[protected]

V6Sockets _v6sockets

_v6sockets

[protected]


Generated by: pavlin on possum.icir.org on Wed Apr 13 21:53:05 2005, using kdoc $.