29 #ifndef JUCE_SOCKET_H_INCLUDED
30 #define JUCE_SOCKET_H_INCLUDED
66 bool bindToPort (
int localPortNumber);
78 bool bindToPort (
int localPortNumber,
const String& localAddress);
95 bool connect (
const String& remoteHostname,
97 int timeOutMillisecs = 3000);
129 int waitUntilReady (
bool readyForReading,
130 int timeoutMsecs)
const;
142 int read (
void* destBuffer,
int maxBytesToRead,
143 bool blockUntilSpecifiedAmountHasArrived);
152 int write (
const void* sourceBuffer,
int numBytesToWrite);
168 bool createListener (
int portNumber,
const String& localHostName =
String());
184 int volatile portNumber, handle;
185 bool connected, isListener;
231 bool bindToPort (
int localPortNumber);
243 bool bindToPort (
int localPortNumber,
const String& localAddress);
268 int waitUntilReady (
bool readyForReading,
269 int timeoutMsecs)
const;
281 int read (
void* destBuffer,
int maxBytesToRead,
282 bool blockUntilSpecifiedAmountHasArrived);
295 int read (
void* destBuffer,
int maxBytesToRead,
296 bool blockUntilSpecifiedAmountHasArrived,
297 String& senderIPAddress,
int& senderPortNumber);
306 int write (
const String& remoteHostname,
int remotePortNumber,
307 const void* sourceBuffer,
int numBytesToWrite);
314 bool joinMulticast (
const String& multicastIPAddress);
320 bool leaveMulticast (
const String& multicastIPAddress);
326 String lastBindAddress, lastServerHost;
328 void* lastServerAddress;
335 #endif // JUCE_SOCKET_H_INCLUDED
int getRawSocketHandle() const noexcept
Definition: juce_Socket.h:254
Definition: juce_Socket.h:42
#define noexcept
Definition: juce_CompilerSupport.h:141
Definition: juce_String.h:43
#define JUCE_API
Definition: juce_StandardHeader.h:139
const String & getHostName() const noexcept
Definition: juce_Socket.h:106
bool isConnected() const noexcept
Definition: juce_Socket.h:100
Definition: juce_CriticalSection.h:47
int getPort() const noexcept
Definition: juce_Socket.h:109
Definition: juce_Socket.h:203