Methods of Class AcceptorSocket
- AcceptorSocket
- AcceptorSocket(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- listen
- sal_Bool listen(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Prepare a socket for the accept-call. The socket must have been
bound before to the local address.
- Parameters
MaxPendingConnections |
The maximum number of pending
connections (waiting to be accepted) on this socket. If you use
-1, a system default value is used.
|
- Return
sal_True
if call was successful.
- acceptConnection
- oslSocketResult acceptConnection(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Accepts incoming connections on the socket. You must
precede this call with osl::Socket::bind() and listen().
- Parameters
Connection |
receives the incoming connection.
|
- Return
osl_Socket_Ok
, if a connection has been accepted,
osl_Socket_TimedOut
, if m_RecvTimeout milliseconds passed without connect,
osl_Socket_Error
on errors.
- acceptConnection
- oslSocketResult acceptConnection(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Accepts incoming connections on the socket. You must
precede this call with osl::Socket::bind() and listen().
- Parameters
PeerAddr |
receives the address of the connecting entity
(your communication partner).
|
Connection |
receives the incoming connection.
|
- Return
osl_Socket_Ok
, if a connection has been accepted,
osl_Socket_TimedOut
, if m_RecvTimeout milliseconds passed without connect,
osl_Socket_Error
on errors.
Top of Page
Copyright © 2010 Sun Microsystems, Inc.