VR-Link API Documentation for HLA 1.3
vlPairSock.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1997 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: vlPairSock.h,v $ $Revision: 1.2.6.1 $ $State: Exp $
00007 *******************************************************************************/
00008 #ifndef vlPairSock_H_
00009 #define vlPairSock_H_
00010 
00014 
00015 #ifndef _WIN32
00016 #ifndef VXWORKS
00017 
00018 #include "vlSocket.h"
00019 
00020 #ifdef DtUSE_UTILITIES_NAMESPACE
00021 namespace DtUSE_UTILITIES_NAMESPACE
00022 {
00023 #endif
00024 
00025 class DT_DLL_NETCOMPAT DtSocketPairSocket : public DtSocket
00026 {
00027   public:
00028     DtSocketPairSocket();
00029     DtSocketPairSocket(int sockNum);
00030 
00031     int sendTo(caddr_t packet, size_t size, DtIpv4Addr addr);
00032     int recvWithStatus(caddr_t buffptr, size_t size, 
00033              int *status=NULL);
00034     int DtRecv(caddr_t *buffptr, int *status);
00035     int DtRecv(caddr_t buff, size_t size);
00036     void DtBecomeNonBlocking(void);
00037 
00038     int otherFd() { return ofd; }
00039     int readFd()  { return myFd; }
00040     int writeFd() { return myFd; }
00041 
00042   private:
00043     int myFd;
00044     int ofd;
00045     char buffer[1500];
00046 };
00047 
00048 #ifdef DtUSE_UTILITIES_NAMESPACE
00049 } 
00050 #endif
00051 
00052 
00053 #endif   //! VXWORKS
00054 #endif   //! WIN32
00055 #endif   //! _PAIRSOCK_H_
00056 
00057 

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)