cisst-saw
Loading...
Searching...
No Matches
osaSocketServer.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3
4/*
5
6 Author(s): Mark Finkelstein, Ali Uneri, Peter Kazanzides
7 Created on: 2009-08-17
8
9 (C) Copyright 2007-2009 Johns Hopkins University (JHU), All Rights Reserved.
10
11--- begin cisst license - do not edit ---
12
13This software is provided "as is" under an open source license, with
14no warranty. The complete license can be found in license.txt and
15http://www.cisst.org/cisst/license.txt.
16
17--- end cisst license ---
18*/
19
41
42#ifndef _osaSocketServer_h
43#define _osaSocketServer_h
44
49// always include last
51
53{
55
56 public:
59
62
66 bool AssignPort(unsigned short port);
67
70 bool Listen(int backlog = 5);
71
75
77 void Close(void);
78
79 protected:
80
82};
83
85
86#endif // _osaSocketServer_h
Base class for high level objects.
Definition cmnGenericObject.h:53
Definition osaSocket.h:175
Definition osaSocketServer.h:53
osaSocket * Accept(void)
Accept an incoming connection.
~osaSocketServer(void)
Destructor.
bool Listen(int backlog=5)
Listen for incoming connections.
osaSocketServer(void)
Default constructor.
bool AssignPort(unsigned short port)
Set the port for receiving data.
void Close(void)
Close the listening socket.
int ServerSocketFD
Definition osaSocketServer.h:81
Class register definitions and log macros.
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition cmnClassRegisterMacros.h:199
const int CMN_NO_DYNAMIC_CREATION
Definition cmnClassRegisterMacros.h:325
#define CISST_EXPORT
Definition cmnExportMacros.h:50
#define CMN_LOG_ALLOW_DEFAULT
Definition cmnLogLoD.h:76
Declaration of cmnLogger amd macros for human readable logging.
Portability across compilers and operating systems tools.
Macros to export the symbols of cisstOSAbstraction (in a Dll).
Declaration of osaSocket.