/* Copyright 2009 Virginia Polytechnic Institute and State University Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* TODO DESCRIPTION OF FILE. */ #ifndef SOCKET_COMM_H #define SOCKET_COMM_H #include #include "containers.h" /* TODO */ int32_t ReadMessage(int32_t socketFD, char *msgBuffer); /* TODO */ int32_t SendMessage(int32_t socketFD, const char *message) ; /* TODO */ int32_t GetParameter(int32_t socketFD, struct Parameter pList[], \ struct Radio_Info *radio_info); /* TODO */ int32_t GetRequest(int32_t socketFD, struct Parameter pList[], \ struct Radio_Info *radio_info); /* This is the original function that does what the above function is supposed * to do. */ int32_t ClientSocket(const char *serverName, const char *portNumber); /* TODO */ int32_t AcceptTCPConnection(int32_t servSock); /* TODO */ int32_t CreateTCPServerSocket(uint16_t port); /* TODO */ int32_t InitializeTCPServerPort(int32_t servSock); #endif