aboutsummaryrefslogtreecommitdiff
path: root/advtrains_train_subway/sounds/advtrains_subway_horn.ogg
diff options
context:
space:
mode:
authorGabriel PĂ©rez-Cerezo <gabriel@gpcf.eu>2018-06-19 10:45:14 +0200
committerorwell96 <orwell@bleipb.de>2018-08-12 17:51:09 +0200
commitffc3cf9d10b705dd258d5f57fcee768e3eef02bf (patch)
tree56e0e0392c1af673555448da472b14b2bf87d3b7 /advtrains_train_subway/sounds/advtrains_subway_horn.ogg
parenta7bb207007970620494393885bfa4ae01c23865b (diff)
downloadadvtrains-ffc3cf9d10b705dd258d5f57fcee768e3eef02bf.tar.gz
advtrains-ffc3cf9d10b705dd258d5f57fcee768e3eef02bf.tar.bz2
advtrains-ffc3cf9d10b705dd258d5f57fcee768e3eef02bf.zip
Remove redundant digtron.lua file
Diffstat (limited to 'advtrains_train_subway/sounds/advtrains_subway_horn.ogg')
0 files changed, 0 insertions, 0 deletions
class="hl kwc">public BaseException { public: SocketException(const char *s): BaseException(s) { } }; class ResolveError : public BaseException { public: ResolveError(const char *s): BaseException(s) { } }; class SendFailedException : public BaseException { public: SendFailedException(const char *s): BaseException(s) { } }; void sockets_init(); void sockets_cleanup(); class Address { public: Address(); Address(unsigned int address, unsigned short port); Address(unsigned int a, unsigned int b, unsigned int c, unsigned int d, unsigned short port); bool operator==(Address &address); bool operator!=(Address &address); void Resolve(const char *name); unsigned int getAddress() const; unsigned short getPort() const; void setAddress(unsigned int address); void setAddress(unsigned int a, unsigned int b, unsigned int c, unsigned int d); void setPort(unsigned short port); void print(std::ostream *s) const; void print() const; std::string serializeString() const; private: unsigned int m_address; unsigned short m_port; }; class UDPSocket { public: UDPSocket(); ~UDPSocket(); void Bind(unsigned short port); //void Close(); //bool IsOpen(); void Send(const Address & destination, const void * data, int size); // Returns -1 if there is no data int Receive(Address & sender, void * data, int size); int GetHandle(); // For debugging purposes only void setTimeoutMs(int timeout_ms); // Returns true if there is data, false if timeout occurred bool WaitData(int timeout_ms); private: int m_handle;