mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 17:53:32 +02:00
close socket added
This commit is contained in:
parent
b651032b06
commit
b19fce1b46
1 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,10 @@ UDPSocket::UDPSocket(int listeningPort) {
|
|||
printf("Created UDP socket listening on port %d.\n", listeningPort);
|
||||
}
|
||||
|
||||
UDPSocket::~UDPSocket() {
|
||||
close(handle);
|
||||
}
|
||||
|
||||
// Receive data on this socket with retrieving address of sender
|
||||
bool UDPSocket::receive(void *receivedData, int *receivedBytes) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue