F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
g
h
i
m
r
s
t
v
w
Variables
Typedefs
Enumerations
Enumerator
a
b
f
h
i
n
o
p
s
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
d
e
f
g
h
i
l
m
n
p
q
r
s
t
u
v
w
x
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
Functions
i
m
p
s
u
Variables
Typedefs
Enumerations
Enumerator
c
d
e
f
m
o
p
r
s
t
v
Macros
_
a
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
TcpClientSocket.hpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title TcpClientSocket.hpp
3
// \author mstarch
4
// \brief cpp file for TcpClientSocket core implementation classes
5
//
6
// \copyright
7
// Copyright 2009-2020, by the California Institute of Technology.
8
// ALL RIGHTS RESERVED. United States Government Sponsorship
9
// acknowledged.
10
//
11
// ======================================================================
12
#ifndef DRV_TCPCLIENT_TCPHELPER_HPP_
13
#define DRV_TCPCLIENT_TCPHELPER_HPP_
14
15
#include <Fw/Types/BasicTypes.hpp>
16
#include <
Drv/Ip/IpSocket.hpp
>
17
#include <
IpCfg.hpp
>
18
19
namespace
Drv
{
26
class
TcpClientSocket
:
public
IpSocket
{
27
public
:
31
TcpClientSocket
();
32
PROTECTED:
38
SocketIpStatus
openProtocol
(
NATIVE_INT_TYPE
& fd);
45
I32
sendProtocol
(
const
U8
*
const
data,
const
U32 size);
52
I32
recvProtocol
(
U8
*
const
data,
const
U32 size);
53
};
54
}
// namespace Drv
55
56
#endif
/* DRV_TCPCLIENT_TCPHELPER_HPP_ */
U8
uint8_t U8
8-bit unsigned integer
Definition:
BasicTypes.hpp:73
Drv::TcpClientSocket::TcpClientSocket
TcpClientSocket()
Constructor for client socket tcp implementation.
Definition:
TcpClientSocket.cpp:42
Drv::IpSocket
Helper base-class for setting up Berkley sockets.
Definition:
IpSocket.hpp:45
Drv
Definition:
BlockDriver.hpp:11
IpCfg.hpp
Drv::TcpClientSocket::sendProtocol
I32 sendProtocol(const U8 *const data, const U32 size)
Protocol specific implementation of send. Called directly with retry from send.
Definition:
TcpClientSocket.cpp:84
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition:
BasicTypes.hpp:27
Drv::TcpClientSocket
Helper for setting up Tcp using Berkley sockets as a client.
Definition:
TcpClientSocket.hpp:26
Drv::TcpClientSocket::openProtocol
SocketIpStatus openProtocol(NATIVE_INT_TYPE &fd)
Tcp specific implementation for opening a client socket.
Definition:
TcpClientSocket.cpp:44
Drv::TcpClientSocket::recvProtocol
I32 recvProtocol(U8 *const data, const U32 size)
Protocol specific implementation of recv. Called directly with error handling from recv.
Definition:
TcpClientSocket.cpp:88
Drv::SocketIpStatus
SocketIpStatus
Status enumeration for socket return values.
Definition:
IpSocket.hpp:23
IpSocket.hpp
Drv
Ip
TcpClientSocket.hpp
Generated by
1.8.17