1 | /* |
---|
2 | Copyright 2009 Virginia Polytechnic Institute and State University |
---|
3 | |
---|
4 | Licensed under the Apache License, Version 2.0 (the "License"); |
---|
5 | you may not use this file except in compliance with the License. |
---|
6 | You may obtain a copy of the License at |
---|
7 | |
---|
8 | http://www.apache.org/licenses/LICENSE-2.0 |
---|
9 | |
---|
10 | Unless required by applicable law or agreed to in writing, software |
---|
11 | distributed under the License is distributed on an "AS IS" BASIS, |
---|
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
13 | See the License for the specific language governing permissions and |
---|
14 | limitations under the License. |
---|
15 | */ |
---|
16 | |
---|
17 | /* TODO DESCRIPTION OF FILE. |
---|
18 | */ |
---|
19 | |
---|
20 | #ifndef SOCKET_COMM_H |
---|
21 | #define SOCKET_COMM_H |
---|
22 | |
---|
23 | #include <stdint.h> |
---|
24 | |
---|
25 | #include "containers.h" |
---|
26 | |
---|
27 | |
---|
28 | /* TODO |
---|
29 | */ |
---|
30 | int32_t ReadMessage(int32_t socketFD, char *msgBuffer); |
---|
31 | |
---|
32 | /* TODO |
---|
33 | */ |
---|
34 | int32_t SendMessage(int32_t socketFD, const char *message) ; |
---|
35 | |
---|
36 | /* TODO |
---|
37 | */ |
---|
38 | int32_t GetParameter(int32_t socketFD, struct Parameter pList[], \ |
---|
39 | struct Radio_Info *radio_info); |
---|
40 | |
---|
41 | /* TODO |
---|
42 | */ |
---|
43 | int32_t GetRequest(int32_t socketFD, struct Parameter pList[], \ |
---|
44 | struct Radio_Info *radio_info); |
---|
45 | |
---|
46 | /* This is the original function that does what the above function is supposed |
---|
47 | * to do. |
---|
48 | */ |
---|
49 | int32_t ClientSocket(const char *serverName, const char *portNumber); |
---|
50 | |
---|
51 | /* TODO |
---|
52 | */ |
---|
53 | int32_t AcceptTCPConnection(int32_t servSock); |
---|
54 | |
---|
55 | /* TODO |
---|
56 | */ |
---|
57 | int32_t CreateTCPServerSocket(uint16_t port); |
---|
58 | |
---|
59 | /* TODO |
---|
60 | */ |
---|
61 | int32_t InitializeTCPServerPort(int32_t servSock); |
---|
62 | |
---|
63 | #endif |
---|