[411] | 1 | /* |
---|
| 2 | Copyright 2009 Virginia Polytechnic Institute and State University |
---|
[161] | 3 | |
---|
[411] | 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 | |
---|
[161] | 17 | /* TODO DESCRIPTION OF FILE. |
---|
| 18 | */ |
---|
| 19 | |
---|
| 20 | #ifndef SOCKET_COMM_H |
---|
| 21 | #define SOCKET_COMM_H |
---|
| 22 | |
---|
| 23 | #include <stdint.h> |
---|
| 24 | |
---|
[255] | 25 | #include "containers.h" |
---|
[161] | 26 | |
---|
[184] | 27 | |
---|
[170] | 28 | /* TODO |
---|
| 29 | */ |
---|
[389] | 30 | int32_t ReadMessage(int32_t socketFD, char *msgBuffer); |
---|
[170] | 31 | |
---|
| 32 | /* TODO |
---|
| 33 | */ |
---|
[231] | 34 | int32_t SendMessage(int32_t socketFD, const char *message) ; |
---|
[170] | 35 | |
---|
| 36 | /* TODO |
---|
| 37 | */ |
---|
[161] | 38 | int32_t GetParameter(int32_t socketFD, struct Parameter pList[], \ |
---|
[195] | 39 | struct Radio_Info *radio_info); |
---|
[170] | 40 | |
---|
| 41 | /* TODO |
---|
| 42 | */ |
---|
[161] | 43 | int32_t GetRequest(int32_t socketFD, struct Parameter pList[], \ |
---|
[195] | 44 | struct Radio_Info *radio_info); |
---|
[161] | 45 | |
---|
[184] | 46 | /* This is the original function that does what the above function is supposed |
---|
| 47 | * to do. |
---|
| 48 | */ |
---|
[231] | 49 | int32_t ClientSocket(const char *serverName, const char *portNumber); |
---|
[184] | 50 | |
---|
| 51 | /* TODO |
---|
| 52 | */ |
---|
[176] | 53 | int32_t AcceptTCPConnection(int32_t servSock); |
---|
| 54 | |
---|
| 55 | /* TODO |
---|
| 56 | */ |
---|
[177] | 57 | int32_t CreateTCPServerSocket(uint16_t port); |
---|
[176] | 58 | |
---|
| 59 | /* TODO |
---|
| 60 | */ |
---|
[207] | 61 | int32_t InitializeTCPServerPort(int32_t servSock); |
---|
| 62 | |
---|
[161] | 63 | #endif |
---|