Line | |
---|
1 | /* |
---|
2 | orxonox - the future of 3D-vertical-scrollers |
---|
3 | |
---|
4 | Copyright (C) 2004 orx |
---|
5 | |
---|
6 | This program is free software; you can redistribute it and/or modify |
---|
7 | it under the terms of the GNU General Public License as published by |
---|
8 | the Free Software Foundation; either version 2, or (at your option) |
---|
9 | any later version. |
---|
10 | |
---|
11 | ### File Specific: |
---|
12 | main-programmer: Christoph Renner |
---|
13 | co-programmer: |
---|
14 | */ |
---|
15 | |
---|
16 | #include "tcp_socket.h" |
---|
17 | |
---|
18 | /** |
---|
19 | * constructor which connects to host |
---|
20 | */ |
---|
21 | TcpSocket::TcpSocket( std::string host, int port ) |
---|
22 | { |
---|
23 | } |
---|
24 | |
---|
25 | /** |
---|
26 | * default constructor |
---|
27 | */ |
---|
28 | TcpSocket::TcpSocket( ) |
---|
29 | { |
---|
30 | } |
---|
31 | |
---|
32 | /** |
---|
33 | * default destructor |
---|
34 | */ |
---|
35 | TcpSocket::~TcpSocket( ) |
---|
36 | { |
---|
37 | } |
---|
38 | |
---|
39 | /** |
---|
40 | * read a packet sent by another NetworkSocket |
---|
41 | * @param data data will be copied here |
---|
42 | * @param maxLength readPacket will not read more than maxLength |
---|
43 | * @return bytes read. on error less than zero |
---|
44 | */ |
---|
45 | int TcpSocket::readPacket( byte * data, int maxLength ) |
---|
46 | { |
---|
47 | } |
---|
48 | |
---|
49 | /** |
---|
50 | * send packet to connected socket. will be recieved as whole packet |
---|
51 | * @param data pointer to data to send |
---|
52 | * @param length lengt of packet to send |
---|
53 | * @return true on success |
---|
54 | */ |
---|
55 | bool TcpSocket::writePacket( byte * data, int length ) |
---|
56 | { |
---|
57 | } |
---|
58 | |
---|
59 | /** |
---|
60 | * disconnect from server |
---|
61 | */ |
---|
62 | void TcpSocket::disconnectServer( ) |
---|
63 | { |
---|
64 | } |
---|
65 | |
---|
66 | /** |
---|
67 | * connect to server on host with port port |
---|
68 | * @param host hostname might be xxx.xxx.xxx.xxx or localhost ... |
---|
69 | * @param port port to connect to |
---|
70 | */ |
---|
71 | void TcpSocket::connectToServer( std::string host, int port ) |
---|
72 | { |
---|
73 | } |
---|
74 | |
---|
Note: See
TracBrowser
for help on using the repository browser.