|
| OsDatagramSocket (int remoteHostPort, const char *remoteHostName, int localHostPort=PORT_DEFAULT, const char *localHostName=NULL) |
|
virtual | ~OsDatagramSocket () |
|
virtual UtlBoolean | reconnect () |
|
void | doConnect (int remotePort, const char *remoteHostName, UtlBoolean simulateConnect=FALSE) |
|
virtual int | write (const char *buffer, int bufferLength) |
| param: remoteHostName - remote host to send datagram(s) in subsequent calls to write (overloaded version without host and port) param: remotePort - port on the remote host to send the datgram(s) param: simulateConnect - if TRUE do not call connect but default the to location (as in sendto) to the given host and port. This is desirable to prevent the receiving of packets from other hosts from being filtered out by the IP stack. More...
|
|
virtual int | write (const char *buffer, int bufferLength, const char *ipAddress, int port) |
| param: buffer - the bytes to be written to the socket param: bufferLength - the number of bytes contained in buffer returns: the number of bytes actually written to the socket More...
|
|
virtual int | read (char *buffer, int bufferLength) |
| param: buffer - the bytes to be written to the socket param: bufferLength - the number of bytes contained in buffer param: ipAddress - remote host to send datagram(s) to param: port - port on the remote host to send the datgram(s) returns: the number of bytes actually written to the socket More...
|
|
virtual OsSocket::IpProtocolSocketType | getIpProtocol () const |
|
virtual void | getRemoteHostIp (struct in_addr *remoteHostAddress, int *remotePort=NULL) |
|
virtual UtlBoolean | getMappedIp (UtlString *ip, int *port) |
|
virtual UtlContainableType | getContainableType () const |
| Determine whether or not the values in a containable are comparable. More...
|
|
| OsSocket () |
|
virtual | ~OsSocket () |
|
virtual int | write (const char *buffer, int bufferLength, long waitMilliseconds) |
| param: buffer - The bytes to be written to the socket. param: bufferLength - The number of bytes contained in buffer. returns: The number of bytes actually written to the socket. returns:
Note: This does not necessarily mean that the bytes were returns: actually received on the other end. More...
|
|
virtual int | read (char *buffer, int bufferLength, UtlString *ipAddress, int *port) |
| param: buffer - Place to put bytes read from the socket. param: bufferLength - The maximum number of bytes buffer will hold. returns: The number of bytes actually read. More...
|
|
virtual int | read (char *buffer, int bufferLength, struct in_addr *ipAddress, int *port) |
| param: buffer - Place to put bytes read from the socket. param: bufferLength - The maximum number of bytes buffer will hold. param: ipAddress - The address of the socket that sent the bytes read. param: port - The port of the socket that sent the bytes read. returns: The number of bytes actually read. More...
|
|
virtual int | read (char *buffer, int bufferLength, long waitMilliseconds) |
| param: buffer - Place to put bytes read from the socket. param: bufferLength - The maximum number of bytes buffer will hold. param: ipAddress - The address of the socket that sent the bytes read. param: port - The port of the socket that sent the bytes read. returns: The number of bytes actually read. More...
|
|
virtual void | close () |
| param: waitMilliseconds - The maximum number of milliseconds to block. This may be set to zero in which case it does not block. More...
|
|
virtual void | makeNonblocking () |
|
virtual void | makeBlocking () |
|
virtual int | getSocketDescriptor () const |
|
virtual void | getLocalHostIp (UtlString *localHostAddress) const |
|
virtual const UtlString & | getLocalIp () const |
|
virtual void | setLocalIp (const UtlString &localIp) |
|
virtual int | getLocalHostPort () const |
|
virtual void | getRemoteHostName (UtlString *remoteHostName) const |
|
virtual void | getRemoteHostIp (UtlString *remoteHostAddress, int *remotePort=NULL) |
|
virtual int | getRemoteHostPort () const |
|
virtual UtlBoolean | isOk () const |
|
virtual UtlBoolean | isConnected () const |
|
virtual UtlBoolean | isReadyToReadEx (long waitMilliseconds, UtlBoolean &rSocketError) const |
|
virtual UtlBoolean | isReadyToRead (long waitMilliseconds=0) const |
|
virtual UtlBoolean | isReadyToWrite (long waitMilliseconds=0) const |
|
virtual unsigned | hash () const |
| Calculate a hash code for this object. More...
|
|
virtual int | compareTo (UtlContainable const *) const |
| Compare this object to another object. More...
|
|
virtual | ~UtlContainable () |
|
unsigned | directHash () const |
| Provides a hash function that uses the object pointer as the hash value. More...
|
|
virtual UtlBoolean | isEqual (UtlContainable const *) const |
| Test this object to another object for equality. More...
|
|
virtual UtlBoolean | isInstanceOf (const UtlContainableType type) const |
| Determine if this object is a derivative of the specified UtlContainableType. More...
|
|