- format
- grig
- audio
- cpp
- format
- Api - grig.audio
- AudioBuffer - grig.audio
- AudioCallback - grig.audio
- AudioChannel - grig.audio
- AudioChannelData - grig.audio
- AudioInterface - grig.audio
- AudioInterfaceOptions - grig.audio
- AudioSample - grig.audio
- AudioStreamInfo - grig.audio
- AudioTime - grig.audio
- LinearInterpolator - grig.audio
- PortAudioHelper - grig.audio
- PortInfo - grig.audio
- RealTimeCallbackValidator - grig.audio
- SampleRate - grig.audio
- midi
- cpp
- file
- event
- ChannelPrefixEvent - grig.midi.file.event
- EndTrackEvent - grig.midi.file.event
- KeySignatureEvent - grig.midi.file.event
- MidiFileEvent - grig.midi.file.event
- MidiFileEventType - grig.midi.file.event
- MidiMessageEvent - grig.midi.file.event
- PortPrefixEvent - grig.midi.file.event
- SequenceEvent - grig.midi.file.event
- SequencerSpecificEvent - grig.midi.file.event
- SmtpeOffsetEvent - grig.midi.file.event
- TempoChangeEvent - grig.midi.file.event
- TextEvent - grig.midi.file.event
- TextEventType - grig.midi.file.event
- TimeSignatureEvent - grig.midi.file.event
- VariableBytes - grig.midi.file
- VariableLengthReader - grig.midi.file
- VariableLengthWriter - grig.midi.file
- event
- python
- Api - grig.midi
- ControlChangeType - grig.midi
- MessageType - grig.midi
- MidiFile - grig.midi
- MidiIn - grig.midi
- MidiInBase - grig.midi
- MidiMessage - grig.midi
- MidiOut - grig.midi
- MidiReceiver - grig.midi
- MidiSender - grig.midi
- MidiTrack - grig.midi
- OscMidiIn - grig.midi
- OscMidiOut - grig.midi
- osc
- argument
- Argument - grig.osc.argument
- ArgumentType - grig.osc.argument
- ArrayArgument - grig.osc.argument
- BlobArgument - grig.osc.argument
- BooleanArgument - grig.osc.argument
- CharArgument - grig.osc.argument
- ColorArgument - grig.osc.argument
- DoubleArgument - grig.osc.argument
- Float32Argument - grig.osc.argument
- HexArgument - grig.osc.argument
- InfinitumArgument - grig.osc.argument
- Int32Argument - grig.osc.argument
- Int64Argument - grig.osc.argument
- MidiArgument - grig.osc.argument
- NilArgument - grig.osc.argument
- StringArgument - grig.osc.argument
- SymbolArgument - grig.osc.argument
- TimeArgument - grig.osc.argument
- Bundle - grig.osc
- BytesTypes - grig.osc
- Callback - grig.osc
- Client - grig.osc
- Deque - grig.osc
- FileSender - grig.osc
- InputTypes - grig.osc
- LoopRunner - grig.osc
- Message - grig.osc
- NullPacketListener - grig.osc
- OSCCallback - grig.osc
- OutputTypes - grig.osc
- Packet - grig.osc
- PacketListener - grig.osc
- PacketSender - grig.osc
- Server - grig.osc
- SimpleCallback - grig.osc
- TcpClient - grig.osc
- TcpServer - grig.osc
- TcpSocket - grig.osc
- UdpPacketListener - grig.osc
- UdpPacketSender - grig.osc
- WorkerRunner - grig.osc
- argument
- pitch
- audio
- haxe
- display
- ds
- exceptions
- io
- ArrayBufferView - haxe.io
- ArrayBufferViewData - haxe.io
- ArrayBufferViewImpl - haxe.io
- Bytes - haxe.io
- BytesBuffer - haxe.io
- BytesData - haxe.io
- BytesInput - haxe.io
- BytesOutput - haxe.io
- Encoding - haxe.io
- Eof - haxe.io
- Error - haxe.io
- FPHelper - haxe.io
- Float32Array - haxe.io
- Float32ArrayData - haxe.io
- Input - haxe.io
- Output - haxe.io
- iterators
- macro
- AbstractType - haxe.macro
- AnonType - haxe.macro
- BaseType - haxe.macro
- Case - haxe.macro
- Catch - haxe.macro
- ClassField - haxe.macro
- ClassType - haxe.macro
- DefType - haxe.macro
- EnumField - haxe.macro
- EnumType - haxe.macro
- Error - haxe.macro
- Expr - haxe.macro
- ExprOf - haxe.macro
- Field - haxe.macro
- Function - haxe.macro
- FunctionArg - haxe.macro
- ImportExpr - haxe.macro
- IncludePosition - haxe.macro
- MetaAccess - haxe.macro
- Metadata - haxe.macro
- MetadataEntry - haxe.macro
- NullSafetyMode - haxe.macro
- ObjectField - haxe.macro
- Position - haxe.macro
- Ref - haxe.macro
- TFunc - haxe.macro
- TVar - haxe.macro
- TypeDefinition - haxe.macro
- TypeParamDecl - haxe.macro
- TypeParameter - haxe.macro
- TypePath - haxe.macro
- TypedExpr - haxe.macro
- Var - haxe.macro
- xml
- CallStack - haxe
- Constructible - haxe
- EntryPoint - haxe
- EnumTools - haxe
- EnumValueTools - haxe
- Exception - haxe
- FlatEnum - haxe
- Function - haxe
- IMap - haxe
- Int32 - haxe
- Int64 - haxe
- Int64Helper - haxe
- Log - haxe
- MainEvent - haxe
- MainLoop - haxe
- NotVoid - haxe
- PosInfos - haxe
- StackItem - haxe
- Timer - haxe
- mpd
- AudioOutput - mpd
- ChannelMessages - mpd
- CollectionResponse - mpd
- Comparison - mpd
- ConnectError - mpd
- CountInfo - mpd
- Decoder - mpd
- FileSystemEntry - mpd
- FileSystemEntryType - mpd
- Filter - mpd
- ListResult - mpd
- ListResultGroup - mpd
- Mount - mpd
- MusicPD - mpd
- NameValuePair - mpd
- Neighbor - mpd
- PlaylistInfo - mpd
- PosAndID - mpd
- PosOrRange - mpd
- Range - mpd
- RelativeType - mpd
- ReplayGainMode - mpd
- ReplayGainStatus - mpd
- Response - mpd
- SingleState - mpd
- SongID - mpd
- SongInfo - mpd
- SongInfos - mpd
- State - mpd
- Stats - mpd
- Status - mpd
- StringResponse - mpd
- Subsystem - mpd
- Tag - mpd
- TimeRange - mpd
- sys
- thx
- tink
- core
- AlreadyDisposed - tink.core
- Annex - tink.core
- Any - tink.core
- Callback - tink.core
- CallbackLink - tink.core
- CallbackLinkRef - tink.core
- CallbackList - tink.core
- Combiner - tink.core
- Disposable - tink.core
- Either - tink.core
- Error - tink.core
- ErrorCode - tink.core
- Future - tink.core
- FutureStatus - tink.core
- FutureTrigger - tink.core
- Lazy - tink.core
- LinkObject - tink.core
- MPair - tink.core
- Named - tink.core
- NamedWith - tink.core
- Never - tink.core
- Next - tink.core
- Noise - tink.core
- Option - tink.core
- OptionIter - tink.core
- OptionTools - tink.core
- Outcome - tink.core
- OutcomeTools - tink.core
- OwnedDisposable - tink.core
- Pair - tink.core
- Pos - tink.core
- Progress - tink.core
- ProgressStatus - tink.core
- ProgressTools - tink.core
- ProgressTrigger - tink.core
- ProgressType - tink.core
- ProgressValue - tink.core
- Promise - tink.core
- PromiseTrigger - tink.core
- Recover - tink.core
- Ref - tink.core
- Signal - tink.core
- SignalTrigger - tink.core
- SimpleDisposable - tink.core
- SimpleLink - tink.core
- Stack - tink.core
- Surprise - tink.core
- TypedError - tink.core
- UnitInterval - tink.core
- Annex - tink
- Callback - tink
- CallbackLink - tink
- CallbackList - tink
- Combiner - tink
- Either - tink
- Error - tink
- Future - tink
- FutureTrigger - tink
- Lazy - tink
- MPair - tink
- Named - tink
- NamedWith - tink
- Never - tink
- Next - tink
- Noise - tink
- Option - tink
- OptionTools - tink
- Outcome - tink
- Pair - tink
- Progress - tink
- Promise - tink
- PromiseTrigger - tink
- Ref - tink
- Signal - tink
- SignalTrigger - tink
- Surprise - tink
- TypedError - tink
- core
- Any
- Array
- ArrayAccess
- Bool
- Class
- Date
- Dynamic
- EReg
- Enum
- EnumValue
- Float
- Int
- IntIterator
- Iterable
- Iterator
- KeyValueIterable
- KeyValueIterator
- Map
- Math
- Null
- Reflect
- Std
- String
- StringBuf
- StringTools
- Sys
- Type
- UInt
- Void
- Xml
- XmlType
A UDP socket class
Constructor
Methods
Inherited Variables
Defined by Socket
custom:Dynamic
A custom value that can be associated with the socket. Can be used to retrieve your custom infos after a select
.
Inherited Methods
Defined by Socket
accept():Socket
Accept a new connected client. This will return a connected socket on which you can read/write some data.
bind(host:Host, port:Int):Void
Bind the socket to the given host/port so it can afterwards listen for connections there.
close():Void
Closes the socket : make sure to properly close all your sockets or you will crash when you run out of file descriptors.
connect(host:Host, port:Int):Void
Connect to the given server host/port. Throw an exception in case we couldn't successfully connect.
listen(connections:Int):Void
Allow the socket to listen for incoming questions. The parameter tells how many pending connections we can have until they get refused. Use accept()
to accept incoming connections.
read():String
Read the whole data available on the socket.
Note: this is not meant to be used together with setBlocking(false)
,
as it will always throw haxe.io.Error.Blocked
. input
methods should be used directly instead.
setBlocking(b:Bool):Void
Change the blocking mode of the socket. A blocking socket is the default behavior. A non-blocking socket will abort blocking operations immediately by throwing a haxe.io.Error.Blocked value.
setFastSend(b:Bool):Void
Allows the socket to immediately send the data when written to its output : this will cause less ping but might increase the number of packets / data size, especially when doing a lot of small writes.
setTimeout(timeout:Float):Void
Gives a timeout (in seconds) after which blocking socket operations (such as reading and writing) will abort and throw an exception.
write(content:String):Void
Write the whole data to the socket output.
Note: this is not meant to be used together with setBlocking(false)
, as
haxe.io.Error.Blocked
may be thrown mid-write with no indication of how many bytes have been written.
output.writeBytes()
should be used instead as it returns this information.