giuliomoro@24: /* UDP client in the internet domain */ giuliomoro@24: #include giuliomoro@24: #include giuliomoro@24: #include giuliomoro@24: #include giuliomoro@24: #include giuliomoro@24: #include giuliomoro@24: #include giuliomoro@24: #include giuliomoro@24: #include giuliomoro@24: giuliomoro@24: struct networkData{ giuliomoro@24: int *counter; giuliomoro@24: float *variables[16]; giuliomoro@24: int numVariables; giuliomoro@24: }; giuliomoro@24: giuliomoro@24: void error(const char *); giuliomoro@24: int setupSockets(int receivePort, int transmitPort, char const*serverName); giuliomoro@24: int sendMessage(networkData message); giuliomoro@24: int receiveMessage(networkData message); giuliomoro@24: void closeSockets();