Back to index

im-sdk  12.3.91
Public Member Functions | Private Member Functions | Private Attributes
IMSocketTrans Class Reference

#include <IMUtil.hh>

List of all members.

Public Member Functions

int get_fd () const
virtual int send (const void *, size_t n)
virtual int recv (void *, size_t n)
 IMSocketTrans (int fd)
virtual ~IMSocketTrans ()

Private Member Functions

 IMSocketTrans (const IMSocketTrans &a)
IMSocketTransoperator= (const IMSocketTrans &a)

Private Attributes

int fd

Detailed Description

Definition at line 153 of file IMUtil.hh.


Constructor & Destructor Documentation

IMSocketTrans::IMSocketTrans ( const IMSocketTrans a) [private]

Definition at line 796 of file IMUtil.cpp.

{
    fd = x_fd;
}

Definition at line 803 of file IMUtil.cpp.

{
    if (fd > 0) {
       shutdown(fd, SHUT_RDWR);
       close(fd);
    }
}

Here is the call graph for this function:


Member Function Documentation

int IMSocketTrans::get_fd ( ) const [inline]

Definition at line 164 of file IMUtil.hh.

    { return fd; }

Here is the caller graph for this function:

IMSocketTrans& IMSocketTrans::operator= ( const IMSocketTrans a) [private]
int IMSocketTrans::recv ( void *  p,
size_t  n 
) [virtual]

Definition at line 788 of file IMUtil.cpp.

{
    return ::recv(fd, p, n, 0);
}

Here is the caller graph for this function:

int IMSocketTrans::send ( const void *  p,
size_t  n 
) [virtual]

Definition at line 779 of file IMUtil.cpp.

{
    return ::send(fd, p, n, 0);
}

Here is the caller graph for this function:


Member Data Documentation

int IMSocketTrans::fd [private]

Definition at line 155 of file IMUtil.hh.


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