VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vlNetworkCompatibility
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
25
class
DT_DLL_NETCOMPAT
DtSocketPairSocket
:
public
DtSocket
26
{
27
public
:
28
DtSocketPairSocket
();
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 Tue Mar 1 02:56:17 EST 2016 from SVN revision 162687
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)