Go to the source code of this file.
Classes | |
class | SocketListener |
Variables | |
module mango io | SocketListener |
import std | thread |
import mango io | Socket |
import mango io model | IBuffer |
import mango io model mango io model | IWriter |
public class VersionAltListener typedef Object | FOO |
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for damages of any kind arising from the use of this software.
Permission is hereby granted to anyone to use this software for any purpose, including commercial applications, and to alter it and/or redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment within documentation of said product would be appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any distribution of the source.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Definition in file SocketListener.d.
|
Definition at line 36 of file SocketListener.d. |
|
Definition at line 38 of file SocketListener.d. |
|
Definition at line 40 of file SocketListener.d. |
|
Definition at line 42 of file SocketListener.d. |
|
Definition at line 42 of file SocketListener.d. |
|
Abstract class to asynchronously listen for incoming data on a socket. This can be used with DatagramSocket & MulticastSocket, and might possibly be useful with a basic SocketConduit also. Note that DatagramSocket must first be bound to a local network address via bind(), and MulticastSocket should first be made a member of a multicast group via its join() method. Note also that the underlying thread is not started by the constructor; you should do that manually via the start() method. Definition at line 63 of file SocketListener.d. |