(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

Methods of Class AcceptorSocket


AcceptorSocket
AcceptorSocket(
oslAddrFamily Family = osl_Socket_FamilyInet,
oslProtocol Protocol = osl_Socket_ProtocolIp,
oslSocketType Type = osl_Socket_TypeStream );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


listen
sal_Bool listen(
sal_Int32 MaxPendingConnections = - 1 );

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(
StreamSocket & Connection );

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(
StreamSocket & Connection,
SocketAddr & PeerAddr );

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

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.