Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

TCPSVR_BLOCKING_READ_REQUEST Class Reference

#include <tcp_srv.hh>

Inheritance diagram for TCPSVR_BLOCKING_READ_REQUEST:

Inheritance graph
[legend]
Collaboration diagram for TCPSVR_BLOCKING_READ_REQUEST:

Collaboration graph
[legend]

Public Methods

 TCPSVR_BLOCKING_READ_REQUEST ()
 ~TCPSVR_BLOCKING_READ_REQUEST ()

Data Fields

CLIENT_TCP_PORT_client_tcp_port
CMS_SERVER_REMOTE_TCP_PORTremport
CMS_SERVERserver
REMOTE_BLOCKING_READ_REPLYread_reply

Constructor & Destructor Documentation

TCPSVR_BLOCKING_READ_REQUEST::TCPSVR_BLOCKING_READ_REQUEST  
 

Definition at line 153 of file tcp_srv.cc.

00153             :
00154 CMS_SERVER_REMOTE_PORT (_cms_server)
00155 {
00156   client_ports = (RCS_LINKED_LIST *) NULL;
00157   connection_socket = 0;
00158   connection_port = 0;
00159   maxfdpl = 0;
00160   dtimeout = 20.0;
00161   if (load_socket_interface () < 0)
00162     {
00163       rcs_print_error ("Can't load socket interface.\n");
00164       return;
00165     }
00166 
00167   memset (&server_socket_address, 0, sizeof (server_socket_address));
00168   server_socket_address.sin_family = AF_INET;
  server_socket_address.sin_addr.s_addr = dl_htonl (INADDR_ANY);

TCPSVR_BLOCKING_READ_REQUEST::~TCPSVR_BLOCKING_READ_REQUEST  
 

Definition at line 189 of file tcp_srv.cc.

00189 {
00190   unregister_port ();
00191   if (NULL != client_ports)
00192     {
00193       delete client_ports;
00194       client_ports = (RCS_LINKED_LIST *) NULL;
00195     }
00196 }
00197 
00198 void
00199 blocking_thread_kill (long int id)
00200 {
00201 
00202   if (id <= 0)
00203     {
00204       return;
00205     }
00206 #if defined(sunos5) && !defined(NO_THREADS)
00207   thr_kill (id, SIGINT);
00208   thr_join (id, NULL, NULL);
00209 #endif
00210 #ifdef POSIX_THREADS
00211   pthread_kill (id, SIGINT);
00212   pthread_join (id, NULL);
00213 #endif
00214 #ifdef VXWORKS
00215   if (taskIdVerify (id) != OK)
00216     {
00217       return;
00218     }


Field Documentation

CLIENT_TCP_PORT* TCPSVR_BLOCKING_READ_REQUEST::_client_tcp_port
 

Definition at line 157 of file tcp_srv.hh.

CMS_SERVER_REMOTE_TCP_PORT* TCPSVR_BLOCKING_READ_REQUEST::remport
 

Definition at line 158 of file tcp_srv.hh.

CMS_SERVER* TCPSVR_BLOCKING_READ_REQUEST::server
 

Definition at line 159 of file tcp_srv.hh.

REMOTE_BLOCKING_READ_REPLY* TCPSVR_BLOCKING_READ_REQUEST::read_reply
 

Definition at line 160 of file tcp_srv.hh.


The documentation for this class was generated from the following files:
Generated on Sun Dec 2 15:59:27 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001