Changeset 110:9ac6386fe9ff in xplra for src/client/c/hu/varadiistvan/xplra/XPlane.h
- Timestamp:
- 12/23/22 09:09:50 (17 months ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 3 'hg:/home/ivaradi/xplane/hg/xplra' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/client/c/hu/varadiistvan/xplra/XPlane.h
r107 r110 36 36 37 37 #include <set> 38 #include <memory> 38 39 39 40 #include <inttypes.h> … … 43 44 namespace hu { namespace varadiistvan { namespace scpl { namespace io { 44 45 45 class LocalClientSocket;46 class BufferedStream; 46 47 class DataStream; 47 48 … … 69 70 private: 70 71 /** 72 * The default TCP port. 73 */ 74 static const unsigned short defaultTCPPort = 0x5852; 75 76 /** 71 77 * Type for the set of multi-dataref buffers. 72 78 */ … … 79 85 80 86 /** 81 * The local client socketover which we are communicating with X-Plane.82 */ 83 scpl::io:: LocalClientSocket* socket;87 * The client socket as a stream, over which we are communicating with X-Plane. 88 */ 89 scpl::io::BufferedStream* socket; 84 90 85 91 /** … … 108 114 109 115 /** 110 * Connect to the simulator .116 * Connect to the simulator locally. 111 117 */ 112 118 void connect(); 119 120 /** 121 * Connect to the simulator on TCP to the given address. 122 */ 123 void connectTCP(const std::string& address, 124 unsigned short port = defaultTCPPort); 113 125 114 126 /** … … 363 375 void setArray(const char* name, uint8_t type, size_t length, 364 376 size_t offset); 377 378 /** 379 * Connect with the given socket. 380 */ 381 template <class ClientSocket> 382 void connect(std::unique_ptr<ClientSocket> clientSocket); 365 383 366 384 friend class MultiBuffer;
Note:
See TracChangeset
for help on using the changeset viewer.