(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4
 Overview   Namespace   Class   Index   Help 

Methods of Class ConnectorSocket


ConnectorSocket
ConnectorSocket(
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 NO NO

Summary
Creates a socket that can connect to a (remote) host.
Parameters
Type
For some protocols it might be desirable to
use a different type than sock_stream (like sock_seqpacket).
Therefore we do not hide this parameter here.

connect
oslSocketResult connect(
const SocketAddr & TargetHost,
const TimeValue * pTimeout = 0 );

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

Summary
Connects the socket to a (remote) host.
Parameters
TargetHost
The address of the target.
pTimeOut
The timeout for blocking. 
Return
result_ok if connected successfully,
result_timeout on timeout,
result_interrupted if unblocked forcefully (by close()),
result_error if connect failed.

Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us

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.

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.