root/vtcross/trunk/src/include/vtcross/socketcomm.h @ 187

Revision 187, 1.1 KB (checked in by bhilburn, 15 years ago)

Abandoning the RemoteComponent? struct; migrating to a simple socketFD
and boolean field.

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 "vtcross/containers.h"
16
17
18/* TODO
19 */
20void ReadMessage(int32_t socketFD, char* msgBuffer);
21
22
23/* TODO
24 */
25//int32_t SendMessage(int32_t socketFD, char* message);
26int32_t SendMessage(int32_t socketFD, const char* message) ;
27
28
29/* TODO
30 */
31int32_t GetParameter(int32_t socketFD, struct Parameter pList[], \
32        struct CE_Info *ce_info);
33
34
35/* TODO
36 */
37int32_t GetRequest(int32_t socketFD, struct Parameter pList[], \
38        struct CE_Info *ce_info);
39
40
41/* This is the original function that does what the above function is supposed
42 * to do.
43 */
44int32_t ClientSocket(const char* serverName, const char* portNumber);
45
46
47/* TODO
48 */
49int32_t  AcceptTCPConnection(int32_t servSock);
50
51
52/* TODO
53 */
54int32_t CreateTCPServerSocket(uint16_t port);
55
56
57/* TODO
58 */
59void HandleTCPClient(int32_t socketfd, Utility* uList[], Parameter* pList[], \
60        Observable* oList[], CE_Info* ce_info);
61
62#endif
Note: See TracBrowser for help on using the browser.