summaryrefslogtreecommitdiffstats
path: root/drivers/unix/packet_peer_udp_posix.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix UDP wait() not returning after first received packetFabio Alessandrelli2017-05-051-0/+2
|
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* Allow non blocking UDP put_packet in C++.Fabio Alessandrelli2017-03-241-1/+35
| | | | | | - Add blocking mode option to PacketPeerUDP. - put_packet returns ERR_UNAVAILABLE when operation would block. - ENet module uses non-blocking UDP.
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-62/+56
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Fix buffer size check in UDP socket.Fabio Alessandrelli2017-01-231-1/+1
| | | | | We were reserving 12 bytes from the buffer for ip, port, and length, but since IPv6 introduction we should be reserving 24 (IPv6 are 16 bytes)
* Use default UDP ring buffer size of 65536 for clientsFabio Alessandrelli2017-01-231-2/+2
| | | | | | | We should probably create a specific function for setting the recv buffer anyway. UDP sockets does not need to bind (listen) to be able to call recvfrom. This is especially useful for clients who just call set_send_address and start communicating with a server.
* Fix bug causing UDP socket to close after the first send if not listeningFabio Alessandrelli2017-01-231-0/+1
| | | | The ring buffer for receiving packets was not resized in constructor
* Bind to IPv4 on OpenBSD when using wildcardFabio Alessandrelli2017-01-231-0/+4
| | | | OpenBSD does not support binding on both IPv4 and IPv6 using the same socket
* Remove set_ip_type from network classes (no longer needed)Fabio Alessandrelli2017-01-231-2/+1
| | | | | | | | | | | | | - TCP: - `listen` bind to wildcard "*" -> dual stack socket - `listen` bind to address -> socket from address type - `connect` -> resolve using best protocol (UNSPEC), socket from address type - UDP: - `listen` bind to wildcard "*" -> dual stack socket - `listen` bind to address -> socket from address type - `put_packet`/`put_var` -> resolve using TYPE_ANY (UNSPEC), socket from address type (to change socket type you must first call `close` it)
* Implement UDP listen bind addressFabio Alessandrelli2017-01-231-5/+19
|
* Implement TCP Server bind addressFabio Alessandrelli2017-01-231-1/+1
|
* Convert validity checks of IP_Address to is_valid method.Fabio Alessandrelli2017-01-231-1/+1
|
* Avoid calling close when polling a UDP peer without socketFabio Alessandrelli2017-01-231-0/+4
|
* UDP.set_send_address to UDP.set_dest_addressJuan Linietsky2017-01-141-1/+1
|
* Merge pull request #7271 from Faless/ipv6_cleanupRémi Verschelde2017-01-021-24/+19
|\ | | | | Fixes and improvementes for IPv6 implementation.
| * IP_Address now handle IPv4 and IPv6 transparentlyFabio Alessandrelli2016-12-091-9/+11
| | | | | | | | | | | | | | | | | | | | IP_Address changes: - Converts to and from String transparently while handling IPv4 as IPv6 mapped (::ffff:[IP]) address internally. - Completely remove AddrType enum. - Setting/Getting of ip array is now only possible through dedicated functions (ie. set_ipv4, get_ipv4, set_ipv6, get_ipv6) - Add function to know if the address is a valid IPv4 (for IP implementation and enet)
| * Migrate int.IP_TYPE_ constants to IP.TYPE_Fabio Alessandrelli2016-12-091-1/+1
| |
| * Move V6ONLY flag selection inside helpersFabio Alessandrelli2016-12-091-8/+0
| |
| * Automatically map IPv4 address to IPv6 when neededFabio Alessandrelli2016-12-091-1/+1
| |
| * Use an instance variable for ip_type in raw socketsFabio Alessandrelli2016-12-091-7/+8
| | | | | | | | | | | | | | PacketPeerUDP/StreamPeerTCP/TCP_Server now uses an instance variable to store the selected ip_type (IPv4/IPv6/ANY, where ANY = dual stack). All calls to resolve addresses, sending/receving data, connecting/listening will use that socket type.
* | Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-011-1/+1
|/ | | | | | | | That year should bring the long-awaited OpenGL ES 3.0 compatible renderer with state-of-the-art rendering techniques tuned to work as low as middle end handheld devices - without compromising with the possibilities given for higher end desktop games of course. Great times ahead for the Godot community and the gamers that will play our games!
* TCP/UDP Listen sockets can now be set to IPv6 onlyFabio Alessandrelli2016-10-301-3/+12
|
* Fix windows debugger connection problems.Fabio Alessandrelli2016-10-301-7/+1
| | | | | Unify network socket creation between platform. Ensure IPV6_V6ONLY flag is not set on sockets (allow IPv4 connection in IPv6 socket, dual-stack).
* Fix PacketPeerUDP get_packet_port()Fabio Alessandrelli2016-10-261-2/+2
| | | | Properly convert port field from network to system ordering on incoming packets.
* Pass correct address size (ipv4,ipv6) to socket connect, bind, sendtoFabio Alessandrelli2016-10-261-4/+4
| | | | | The address size passed to network system calls now reflects the the actual IP type (v4 or v6). Fix Windows and OSX ipv6 sockets
* added windows support for ipv6, cleaned up unix codeAriel Manzur2016-10-201-25/+4
|
* adding ipv6Ariel Manzur2016-10-181-20/+79
|
* Removed lots of printsDaniel J. Ramirez2016-06-181-1/+0
|
* Add missing license headers in our source files (#5255)Rémi Verschelde2016-06-181-0/+28
| | | Also removes a couple wrong Godot headers from third-party source files.
* Fixed mistake where available buffer size would not be updated for each ↵Trond Abusdal2015-11-191-3/+1
| | | | recvfrom-call in PacketPeerUDPWinsockPposix.
* * Winsock UDP messages sent to an unavailable target causing WSAECONNRESET ↵Trond Abusdal2015-11-091-1/+5
| | | | | | will no longer close the socket. * Ensured that unsigned<->signed conversion would not cause wrong buffer size values sent to recvfrom.
* Fixed PacketPeerUDP getting wrongly closed due to recvfrom using ↵Trond Abusdal2015-11-091-1/+1
| | | | rb.data_left instead of rb.space_left.
* Haiku: fix building with UNIX_ENABLED.Kostadin Damyanov2015-05-251-1/+5
|
* UDP FixesJuan Linietsky2014-11-131-8/+14
| | | | | | | | | | | | | | -=-=-=-=- Curse the day I decided to port UDP code, as it ended up being two nights of work. At least It's done now (I hope). -Fixed UDP Support, API seems stable -Added UDP Chat demo (chat that can lose your packets, heh) -Added helpers to areas and bodies to get list of collided bodies and contained bodies. -Sped up screen/viewport capture code. -Added code to save an image as PNG -Small fix so scripts register their singletons after modules did.
* 3D Import Import & UDPJuan Linietsky2014-11-121-0/+188
-=-=-=-=-=-=-=-=-=-=- -Animation Import filter support -Animation Clip import support -Animation Optimizer Fixes, Improvements and Visibile Options -Extremely Experimental UDP support.