forked from mirror/OpenTTD
(svn r15971) -Codechange: make it possible for UDP socket handlers to bind to multiple sockets.
This commit is contained in:
@@ -20,8 +20,15 @@ private:
|
||||
Packet *packet_queue; ///< Packets that are awaiting delivery
|
||||
Packet *packet_recv; ///< Partially received packet
|
||||
public:
|
||||
SOCKET sock; ///< The socket currently connected to
|
||||
bool writable; ///< Can we write to this socket?
|
||||
|
||||
/**
|
||||
* Whether this socket is currently bound to a socket.
|
||||
* @return true when the socket is bound, false otherwise
|
||||
*/
|
||||
bool IsConnected() const { return this->sock != INVALID_SOCKET; }
|
||||
|
||||
virtual NetworkRecvStatus CloseConnection();
|
||||
void Send_Packet(Packet *packet);
|
||||
bool Send_Packets();
|
||||
|
Reference in New Issue
Block a user