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

Revision 411, 1.4 KB (checked in by trnewman, 15 years ago)

Adding Apache license information.

Line 
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 */
30int32_t ReadMessage(int32_t socketFD, char *msgBuffer);
31
32/* TODO
33 */
34int32_t SendMessage(int32_t socketFD, const char *message) ;
35
36/* TODO
37 */
38int32_t GetParameter(int32_t socketFD, struct Parameter pList[], \
39        struct Radio_Info *radio_info);
40
41/* TODO
42 */
43int32_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 */
49int32_t ClientSocket(const char  *serverName, const char *portNumber);
50
51/* TODO
52 */
53int32_t  AcceptTCPConnection(int32_t servSock);
54
55/* TODO
56 */
57int32_t CreateTCPServerSocket(uint16_t port);
58
59/* TODO
60 */
61int32_t InitializeTCPServerPort(int32_t servSock);
62
63#endif
Note: See TracBrowser for help on using the browser.