root/vtcross/branches/wrodgers/src/include/vtcross/socketcomm.h @ 275

Revision 275, 1.0 KB (checked in by wrodgers, 15 years ago)

Updated data management, added function descriptions, fixed a few errors

Line 
1/* Virginia Tech Cognitive Radio Open Source Systems
2 * Virginia Tech, 2009
3 *
4 * TODO LICENSE INFORMATION GOES HERE
5 */
6
7/* TODO DESCRIPTION OF FILE.
8 */
9
10#ifndef SOCKET_COMM_H
11#define SOCKET_COMM_H
12
13#include <stdint.h>
14
15#include "containers.h"
16
17
18/* TODO
19 */
20void ReadMessage(int32_t socketFD, char *msgBuffer);
21
22/* TODO
23 */
24int32_t SendMessage(int32_t socketFD, const char *message) ;
25
26/* TODO
27 */
28int32_t GetParameter(int32_t socketFD, struct Parameter pList[], \
29        struct Radio_Info *radio_info);
30
31/* TODO
32 */
33int32_t GetRequest(int32_t socketFD, struct Parameter pList[], \
34        struct Radio_Info *radio_info);
35
36/* This is the original function that does what the above function is supposed
37 * to do.
38 */
39int32_t ClientSocket(const char  *serverName, const char *portNumber);
40
41/* TODO
42 */
43int32_t  AcceptTCPConnection(int32_t servSock);
44
45/* TODO
46 */
47int32_t CreateTCPServerSocket(uint16_t port);
48
49/* TODO
50 */
51int32_t InitializeTCPServerPort(int32_t servSock);
52
53#endif
Note: See TracBrowser for help on using the browser.