mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 05:02:25 +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);
|
printf("Created UDP socket listening on port %d.\n", listeningPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UDPSocket::~UDPSocket() {
|
||||||
|
close(handle);
|
||||||
|
}
|
||||||
|
|
||||||
// Receive data on this socket with retrieving address of sender
|
// Receive data on this socket with retrieving address of sender
|
||||||
bool UDPSocket::receive(void *receivedData, int *receivedBytes) {
|
bool UDPSocket::receive(void *receivedData, int *receivedBytes) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue