Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Public Attributes
Arc::MCC_TCP_Service::mcc_tcp_exec_t Class Reference
Collaboration diagram for Arc::MCC_TCP_Service::mcc_tcp_exec_t:
Collaboration graph

List of all members.

Public Member Functions

 mcc_tcp_exec_t (MCC_TCP_Service *o, int h, int t, bool nd=false)
 operator bool (void)

Public Attributes

int handle
int id
bool no_delay
int timeout

Detailed Description

Definition at line 44 of file MCCTCP.h.

Constructor & Destructor Documentation

Arc::MCC_TCP_Service::mcc_tcp_exec_t::mcc_tcp_exec_t ( MCC_TCP_Service o,
int  h,
int  t,
bool  nd = false 

Definition at line 245 of file MCCTCP.cpp.

                                                                                   :obj(o),handle(h),no_delay(nd),timeout(t) {
    static int local_id = 0;
    if(handle == -1) return;
    // list is locked externally
    std::list<mcc_tcp_exec_t>::iterator e = o->executers_.insert(o->executers_.end(),*this);
    if(!CreateThreadFunction(&MCC_TCP_Service::executer,&(*e))) {
        logger.msg(ERROR, "Failed to start thread for communication");
#ifdef WIN32
        ::closesocket(handle); handle=-1; o->executers_.erase(e);
        ::close(handle);  handle=-1; o->executers_.erase(e);

Here is the call graph for this function:

Member Function Documentation

Arc::MCC_TCP_Service::mcc_tcp_exec_t::operator bool ( void  ) [inline]

Definition at line 53 of file MCCTCP.h.

{ return (handle != -1); };

Member Data Documentation

Definition at line 47 of file MCCTCP.h.

Definition at line 49 of file MCCTCP.h.

Definition at line 50 of file MCCTCP.h.

Definition at line 46 of file MCCTCP.h.

Definition at line 51 of file MCCTCP.h.

The documentation for this class was generated from the following files: