VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vlPairSock.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1997 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: vlPairSock.h,v $ $Revision: 1.2.6.1 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef vlPairSock_H_
9 #define vlPairSock_H_
10 
14 
15 #ifndef _WIN32
16 #ifndef VXWORKS
17 
18 #include "vlSocket.h"
19 
20 #ifdef DtUSE_UTILITIES_NAMESPACE
21 namespace DtUSE_UTILITIES_NAMESPACE
22 {
23 #endif
24 
26 {
27  public:
29  DtSocketPairSocket(int sockNum);
30 
31  int sendTo(caddr_t packet, size_t size, DtIpv4Addr addr);
32  int recvWithStatus(caddr_t buffptr, size_t size,
33  int *status=NULL);
34  int DtRecv(caddr_t *buffptr, int *status);
35  int DtRecv(caddr_t buff, size_t size);
36  void DtBecomeNonBlocking(void);
37 
38  int otherFd() { return ofd; }
39  int readFd() { return myFd; }
40  int writeFd() { return myFd; }
41 
42  private:
43  int myFd;
44  int ofd;
45  char buffer[1500];
46 };
47 
48 #ifdef DtUSE_UTILITIES_NAMESPACE
49 }
50 #endif
51 
52 
53 #endif
54 #endif
55 #endif
56 
57 

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)