Home
Information
Classes
Download
Usage
Mail List
Requirements
Links
FAQ
Tutorial
include
TcpServer.h
1
#ifndef STK_TCPSERVER_H
2
#define STK_TCPSERVER_H
3
4
#include "Socket.h"
5
6
namespace
stk {
7
8
/***************************************************/
31
/***************************************************/
32
33
class
TcpServer
:
public
Socket
34
{
35
public
:
37
40
TcpServer
(
int
port
= 2006 );
41
43
~TcpServer
();
44
46
51
int
accept
(
void
);
52
54
int
writeBuffer
(
const
void
*buffer,
long
bufferSize,
int
flags = 0);
55
57
int
readBuffer
(
void
*buffer,
long
bufferSize,
int
flags = 0);
58
59
protected
:
60
61
};
62
63
}
// stk namespace
64
65
#endif
The Synthesis ToolKit in C++ (STK)
©1995--2019 Perry R. Cook and Gary P. Scavone. All Rights Reserved.