LibreOffice
LibreOffice 6.0 SDK C/C++ API Reference
socket.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_OSL_SOCKET_H
21 #define INCLUDED_OSL_SOCKET_H
22 
23 #include <rtl/ustring.h>
24 #include <rtl/byteseq.h>
25 
26 #include <osl/time.h>
27 #include <rtl/tencinfo.h>
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 /* error returns */
34 #define OSL_INADDR_NONE 0xffffffff
35 #define OSL_INVALID_PORT (-1)
36 
40 typedef struct oslSocketAddrImpl * oslSocketAddr;
41 
45 typedef enum {
51 
55 typedef enum {
62 } oslProtocol;
63 
67 typedef enum {
80 
81 
85 typedef enum {
117 
121 typedef enum {
127 
131 typedef enum {
140 
144 typedef enum {
151 
154 typedef enum {
190 
193 typedef enum {
202 
205 
212 typedef struct oslSocketImpl * oslSocket;
213 
220 SAL_DLLPUBLIC oslSocket SAL_CALL osl_createSocket(
221  oslAddrFamily Family,
222  oslSocketType Type,
223  oslProtocol Protocol);
224 
227 SAL_DLLPUBLIC void SAL_CALL osl_acquireSocket(oslSocket Socket);
228 
234 SAL_DLLPUBLIC void SAL_CALL osl_releaseSocket(oslSocket Socket);
235 
243 SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_getLocalAddrOfSocket(oslSocket Socket);
244 
251 SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_getPeerAddrOfSocket(oslSocket Socket);
252 
261  oslSocket Socket,
262  oslSocketAddr Addr);
263 
275 SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_connectSocketTo(
276  oslSocket Socket,
277  oslSocketAddr Addr,
278  const TimeValue* pTimeout);
279 
280 
290  oslSocket Socket,
291  sal_Int32 MaxPendingConnections);
292 
293 
302  oslSocket Socket,
303  oslSocketAddr* pAddr);
304 
323 SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_receiveSocket(
324  oslSocket Socket,
325  void* pBuffer,
326  sal_uInt32 BytesToRead,
327  oslSocketMsgFlag Flag);
328 
349 SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_receiveFromSocket(
350  oslSocket Socket,
351  oslSocketAddr SenderAddr,
352  void* pBuffer,
353  sal_uInt32 BufferSize,
354  oslSocketMsgFlag Flag);
355 
372 SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_sendSocket(
373  oslSocket Socket,
374  const void* pBuffer,
375  sal_uInt32 BytesToSend,
376  oslSocketMsgFlag Flag);
377 
404 SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_sendToSocket(
405  oslSocket Socket,
406  oslSocketAddr ReceiverAddr,
407  const void* pBuffer,
408  sal_uInt32 BytesToSend,
409  oslSocketMsgFlag Flag);
410 
424  oslSocket Socket,
425  const TimeValue* pTimeout);
426 
440  oslSocket Socket,
441  const TimeValue* pTimeout);
442 
455  oslSocket Socket,
456  const TimeValue* pTimeout);
457 
471  oslSocket Socket,
472  oslSocketDirection Direction);
473 
527 SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_getSocketOption(
528  oslSocket Socket,
529  oslSocketOptionLevel Level,
530  oslSocketOption Option,
531  void* pBuffer,
532  sal_uInt32 BufferLen);
533 
552  oslSocket Socket,
553  oslSocketOptionLevel Level,
554  oslSocketOption Option,
555  void* pBuffer,
556  sal_uInt32 BufferLen);
557 
566  oslSocket Socket,
567  sal_Bool On);
568 
569 
576 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isNonBlockingMode(oslSocket Socket);
577 
589 SAL_DLLPUBLIC oslSocketType SAL_CALL osl_getSocketType(oslSocket Socket);
590 
597  oslSocket Socket,
598  rtl_uString **strError);
599 
606 SAL_DLLPUBLIC oslSocketError SAL_CALL osl_getLastSocketError(
607  oslSocket Socket);
608 
611 typedef struct oslSocketSetImpl * oslSocketSet;
612 
617 SAL_DLLPUBLIC oslSocketSet SAL_CALL osl_createSocketSet(void);
618 
621 SAL_DLLPUBLIC void SAL_CALL osl_destroySocketSet(oslSocketSet Set);
622 
627 SAL_DLLPUBLIC void SAL_CALL osl_clearSocketSet(oslSocketSet Set);
628 
629 
635 SAL_DLLPUBLIC void SAL_CALL osl_addToSocketSet(oslSocketSet Set, oslSocket Socket);
636 
642 SAL_DLLPUBLIC void SAL_CALL osl_removeFromSocketSet(oslSocketSet Set, oslSocket Socket);
643 
651 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isInSocketSet(oslSocketSet Set, oslSocket Socket);
652 
667 SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_demultiplexSocketEvents(
668  oslSocketSet IncomingSet,
669  oslSocketSet OutgoingSet,
670  oslSocketSet OutOfBandSet,
671  const TimeValue* pTimeout);
672 
677 SAL_DLLPUBLIC void SAL_CALL osl_closeSocket(oslSocket Socket);
678 
679 
691 SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_readSocket(
692  oslSocket Socket,
693  void *pBuffer,
694  sal_Int32 nSize);
695 
696 
707 SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_writeSocket(
708  oslSocket Socket,
709  const void *pBuffer,
710  sal_Int32 nSize);
711 
722 SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_createEmptySocketAddr(
723  oslAddrFamily Family);
724 
725 
728 SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_copySocketAddr(
729  oslSocketAddr Addr);
730 
736  oslSocketAddr Addr1, oslSocketAddr Addr2);
737 
743 SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_resolveHostname(
744  rtl_uString *strHostname);
745 
755 SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_createInetBroadcastAddr(
756  rtl_uString *strDottedAddr, sal_Int32 Port);
757 
758 
766 SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_createInetSocketAddr (
767  rtl_uString *strDottedAddr, sal_Int32 Port);
768 
769 
774  oslSocketAddr Addr);
775 
780 SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_getServicePort(
781  rtl_uString *strServicename, rtl_uString *strProtocol);
782 
783 
784 
789 SAL_DLLPUBLIC oslAddrFamily SAL_CALL osl_getFamilyOfSocketAddr(
790  oslSocketAddr Addr);
791 
792 
797 SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_getInetPortOfSocketAddr(
798  oslSocketAddr Addr);
799 
800 
807  oslSocketAddr Addr, sal_Int32 Port);
808 
809 
815 SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_getHostnameOfSocketAddr(
816  oslSocketAddr Addr, rtl_uString **strHostname);
817 
818 
829 SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_getDottedInetAddrOfSocketAddr(
830  oslSocketAddr Addr, rtl_uString **strDottedInetAddr);
831 
834 SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_setAddrOfSocketAddr(
835  oslSocketAddr Addr, sal_Sequence *pByteSeq );
836 
844 SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_getAddrOfSocketAddr(
845  oslSocketAddr Addr, sal_Sequence **ppByteSeq );
846 
847 /*
848  Opaque datatype HostAddr.
849 */
850 typedef struct oslHostAddrImpl * oslHostAddr;
851 
852 
858 SAL_DLLPUBLIC oslHostAddr SAL_CALL osl_createHostAddr(
859  rtl_uString *strHostname, const oslSocketAddr Addr);
860 
861 
869 SAL_DLLPUBLIC oslHostAddr SAL_CALL osl_createHostAddrByName(rtl_uString *strHostname);
870 
871 
879 SAL_DLLPUBLIC oslHostAddr SAL_CALL osl_createHostAddrByAddr(const oslSocketAddr Addr);
880 
881 
885 SAL_DLLPUBLIC oslHostAddr SAL_CALL osl_copyHostAddr(const oslHostAddr Addr);
886 
887 
891 SAL_DLLPUBLIC void SAL_CALL osl_destroyHostAddr(oslHostAddr Addr);
892 
893 
897 SAL_DLLPUBLIC void SAL_CALL osl_getHostnameOfHostAddr(const oslHostAddr Addr, rtl_uString **strHostname);
898 
899 
903 SAL_DLLPUBLIC oslSocketAddr SAL_CALL osl_getSocketAddrOfHostAddr(const oslHostAddr Addr);
904 
911 SAL_DLLPUBLIC oslSocketResult SAL_CALL osl_getLocalHostname(rtl_uString **strLocalHostname);
912 
913 
917 #ifdef __cplusplus
918 }
919 #endif
920 
921 #endif // INCLUDED_OSL_SOCKET_H
922 
923 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: socket.h:178
oslSocketOptionLevel
Represents the different socket-option levels.
Definition: socket.h:121
Definition: socket.h:176
SAL_DLLPUBLIC oslSocketResult osl_setAddrOfSocketAddr(oslSocketAddr Addr, sal_Sequence *pByteSeq)
Sets the addr field in the struct sockaddr with pByteSeq.
SAL_DLLPUBLIC void osl_clearSocketSet(oslSocketSet Set)
Clears the set from all previously added sockets.
#define SAL_DLLPUBLIC
Definition: saldllapi.h:30
struct oslSocketSetImpl * oslSocketSet
Type for the representation of socket sets.
Definition: socket.h:610
Definition: socket.h:155
SAL_DLLPUBLIC oslHostAddr osl_createHostAddrByName(rtl_uString *strHostname)
Create an oslHostAddr by resolving the given strHostname.
SAL_DLLPUBLIC sal_Int32 osl_receiveFromSocket(oslSocket Socket, oslSocketAddr SenderAddr, void *pBuffer, sal_uInt32 BufferSize, oslSocketMsgFlag Flag)
Tries to receives BufferSize data from the (usually unconnected) (datagram-)socket, if no error occurs.
Definition: socket.h:108
Definition: socket.h:114
SAL_DLLPUBLIC oslSocketResult osl_getHostnameOfSocketAddr(oslSocketAddr Addr, rtl_uString **strHostname)
Returns the hostname represented by Addr.
struct oslSocketImpl * oslSocket
Definition: socket.h:211
SAL_DLLPUBLIC oslSocketAddr osl_getLocalAddrOfSocket(oslSocket Socket)
Retrieves the Address of the local end of the socket.
Definition: socket.h:137
Definition: socket.h:89
SAL_DLLPUBLIC void osl_destroySocketSet(oslSocketSet Set)
Destroys an oslSocketSet.
Definition: socket.h:198
sal_uInt8 oslSocketIpxNodeNumber[6]
Definition: socket.h:204
Definition: socket.h:158
Definition: socket.h:60
Definition: socket.h:93
SAL_DLLPUBLIC sal_Int32 osl_sendSocket(oslSocket Socket, const void *pBuffer, sal_uInt32 BytesToSend, oslSocketMsgFlag Flag)
Tries to send BytesToSend data from the connected socket, if no error occurs.
SAL_DLLPUBLIC sal_Bool osl_isInSocketSet(oslSocketSet Set, oslSocket Socket)
Checks if socket is in the set.
oslSocketOption
Represents socket-options.
Definition: socket.h:85
SAL_DLLPUBLIC oslSocketResult osl_getAddrOfSocketAddr(oslSocketAddr Addr, sal_Sequence **ppByteSeq)
Returns the addr field in the struct sockaddr.
SAL_DLLPUBLIC void osl_removeFromSocketSet(oslSocketSet Set, oslSocket Socket)
Removes a socket from the set.
Definition: socket.h:169
oslSocketDirection
Used by shutdown to denote which end of the socket to "close".
Definition: socket.h:144
Definition: socket.h:101
Definition: socket.h:164
Definition: socket.h:188
Definition: socket.h:146
Definition: socket.h:167
Definition: socket.h:124
SAL_DLLPUBLIC oslSocketError osl_getLastSocketError(oslSocket Socket)
Returns a constant describing the last error for the socket system.
SAL_DLLPUBLIC oslSocketSet osl_createSocketSet(void)
Creates a set of sockets to be used with osl_demultiplexSocketEvents().
Definition: socket.h:179
SAL_DLLPUBLIC oslSocketAddr osl_getPeerAddrOfSocket(oslSocket Socket)
Retrieves the Address of the remote end of the socket.
Definition: socket.h:156
SAL_DLLPUBLIC void osl_getHostnameOfHostAddr(const oslHostAddr Addr, rtl_uString **strHostname)
Get the hostname member of Addr.
Definition: socket.h:148
#define SAL_MAX_ENUM
Definition: types.h:228
struct oslHostAddrImpl * oslHostAddr
Definition: socket.h:848
oslSocketType
Represents the type of a socket.
Definition: socket.h:67
oslSocketError
Describes the various error socket error conditions, which may occur.
Definition: socket.h:154
Definition: socket.h:122
Definition: socket.h:70
SAL_DLLPUBLIC oslSocketResult osl_getDottedInetAddrOfSocketAddr(oslSocketAddr Addr, rtl_uString **strDottedInetAddr)
Gets the address in dotted decimal format.
Definition: socket.h:102
unsigned char sal_Bool
Definition: types.h:39
oslSocketMsgFlag
Represents flags to be used with send/recv-calls.
Definition: socket.h:131
unsigned char sal_uInt8
Definition: types.h:45
SAL_DLLPUBLIC void osl_closeSocket(oslSocket Socket)
Closes the socket terminating any ongoing dataflow.
Definition: socket.h:56
sal_uInt8 oslSocketIpxNetNumber[4]
Definition: socket.h:203
Definition: socket.h:134
Definition: socket.h:47
SAL_DLLPUBLIC oslSocketAddr osl_createInetBroadcastAddr(rtl_uString *strDottedAddr, sal_Int32 Port)
Create an internet address usable for sending broadcast datagrams.
SAL_DLLPUBLIC sal_Int32 osl_writeSocket(oslSocket Socket, const void *pBuffer, sal_Int32 nSize)
Writes n bytes from pBuffer to the stream.
SAL_DLLPUBLIC oslHostAddr osl_createHostAddr(rtl_uString *strHostname, const oslSocketAddr Addr)
Create an oslHostAddr from given hostname and socket address.
SAL_DLLPUBLIC sal_Bool osl_bindAddrToSocket(oslSocket Socket, oslSocketAddr Addr)
Binds the given address to the socket.
Definition: socket.h:173
Definition: socket.h:184
SAL_DLLPUBLIC sal_Bool osl_listenOnSocket(oslSocket Socket, sal_Int32 MaxPendingConnections)
Prepares the socket to act as an acceptor of incoming connections.
Definition: socket.h:138
Definition: socket.h:110
Definition: socket.h:109
struct oslSocketAddrImpl * oslSocketAddr
Opaque datatype SocketAddr.
Definition: socket.h:40
oslSocketResult
Common return codes of socket related functions.
Definition: socket.h:193
Definition: socket.h:132
Definition: socket.h:98
SAL_DLLPUBLIC void osl_releaseSocket(oslSocket Socket)
decreases the refcount of the socket handle by one.
Definition: socket.h:168
Definition: socket.h:78
SAL_DLLPUBLIC sal_Int32 osl_sendToSocket(oslSocket Socket, oslSocketAddr ReceiverAddr, const void *pBuffer, sal_uInt32 BytesToSend, oslSocketMsgFlag Flag)
Tries to send one datagram with BytesToSend data to the given ReceiverAddr via the (implicitly unconn...
SAL_DLLPUBLIC sal_Bool osl_isEqualSocketAddr(oslSocketAddr Addr1, oslSocketAddr Addr2)
Compares the values of two SocketAddresses.
Definition: socket.h:187
Definition: socket.h:182
Definition: socket.h:170
SAL_DLLPUBLIC sal_Int32 osl_readSocket(oslSocket Socket, void *pBuffer, sal_Int32 nSize)
Retrieves n bytes from the stream and copies them into pBuffer.
Definition: socket.h:59
Definition: socket.h:90
SAL_DLLPUBLIC oslSocketResult osl_connectSocketTo(oslSocket Socket, oslSocketAddr Addr, const TimeValue *pTimeout)
Connects the socket to the given address.
Definition: socket.h:171
Definition: socket.h:125
Definition: socket.h:88
SAL_DLLPUBLIC sal_Bool osl_isSendReady(oslSocket Socket, const TimeValue *pTimeout)
Checks if send operations will block.
SAL_DLLPUBLIC sal_Bool osl_enableNonBlockingMode(oslSocket Socket, sal_Bool On)
Enables/disables non-blocking-mode of the socket.
SAL_DLLPUBLIC sal_Int32 osl_getSocketOption(oslSocket Socket, oslSocketOptionLevel Level, oslSocketOption Option, void *pBuffer, sal_uInt32 BufferLen)
Retrieves attributes associated with the socket.
Definition: socket.h:95
Definition: socket.h:186
Definition: socket.h:133
SAL_DLLPUBLIC void osl_getLastSocketErrorDescription(oslSocket Socket, rtl_uString **strError)
returns a string which describes the last socket error.
SAL_DLLPUBLIC sal_Bool osl_isNonBlockingMode(oslSocket Socket)
Query state of non-blocking-mode of the socket.
SAL_DLLPUBLIC sal_Bool osl_shutdownSocket(oslSocket Socket, oslSocketDirection Direction)
Shuts down communication on a connected socket.
Definition: socket.h:74
SAL_DLLPUBLIC oslSocketAddr osl_getSocketAddrOfHostAddr(const oslHostAddr Addr)
Get the socket address member of Addr.
Definition: socket.h:145
SAL_DLLPUBLIC sal_Bool osl_isReceiveReady(oslSocket Socket, const TimeValue *pTimeout)
Checks if read operations will block.
SAL_DLLPUBLIC void osl_destroySocketAddr(oslSocketAddr Addr)
Frees all resources allocated by Addr.
SAL_DLLPUBLIC oslHostAddr osl_createHostAddrByAddr(const oslSocketAddr Addr)
Create an oslHostAddr by reverse resolution of the given Addr.
Definition: socket.h:58
Definition: socket.h:185
Definition: socket.h:180
SAL_DLLPUBLIC sal_Bool osl_setInetPortOfSocketAddr(oslSocketAddr Addr, sal_Int32 Port)
Sets the Port of Addr.
SAL_DLLPUBLIC oslSocketAddr osl_createEmptySocketAddr(oslAddrFamily Family)
Creates a socket-address for the given family.
oslProtocol
represent a specific protocol within a address-family
Definition: socket.h:55
Definition: socket.h:159
Definition: socket.h:181
SAL_DLLPUBLIC void osl_acquireSocket(oslSocket Socket)
increases the refcount of the socket handle by one
SAL_DLLPUBLIC oslSocketResult osl_getLocalHostname(rtl_uString **strLocalHostname)
Retrieve this machines hostname.
Definition: socket.h:197
SAL_DLLPUBLIC sal_Int32 osl_receiveSocket(oslSocket Socket, void *pBuffer, sal_uInt32 BytesToRead, oslSocketMsgFlag Flag)
Tries to receive BytesToRead data from the connected socket, if no error occurs.
This is the binary specification of a SAL sequence.
Definition: types.h:327
Definition: socket.h:113
Definition: socket.h:177
Definition: socket.h:48
Definition: socket.h:135
Definition: socket.h:199
SAL_DLLPUBLIC oslSocketAddr osl_resolveHostname(rtl_uString *strHostname)
Uses the systems name-service interface to find an address for strHostname.
SAL_DLLPUBLIC sal_Bool osl_isExceptionPending(oslSocket Socket, const TimeValue *pTimeout)
Checks if a request for out-of-band data will block.
Definition: socket.h:160
Definition: time.h:66
Definition: socket.h:86
SAL_DLLPUBLIC oslSocketType osl_getSocketType(oslSocket Socket)
Queries the socket for its type.
Definition: socket.h:115
SAL_DLLPUBLIC oslAddrFamily osl_getFamilyOfSocketAddr(oslSocketAddr Addr)
Retrieves the address-family from the Addr.
Definition: socket.h:183
SAL_DLLPUBLIC void osl_destroyHostAddr(oslHostAddr Addr)
Frees all resources allocated by Addr.
Definition: socket.h:71
Definition: socket.h:92
Definition: socket.h:147
Definition: socket.h:162
SAL_DLLPUBLIC oslSocketAddr osl_copySocketAddr(oslSocketAddr Addr)
Creates a new SocketAddress and fills it from Addr.
SAL_DLLPUBLIC sal_Int32 osl_getServicePort(rtl_uString *strServicename, rtl_uString *strProtocol)
Looks up the port-number designated to the specified service/protocol-pair.
Definition: socket.h:194
Definition: socket.h:157
SAL_DLLPUBLIC oslSocket osl_acceptConnectionOnSocket(oslSocket Socket, oslSocketAddr *pAddr)
Waits for an ingoing connection on the socket.
Definition: socket.h:87
Definition: socket.h:46
Definition: socket.h:161
SAL_DLLPUBLIC oslSocketAddr osl_createInetSocketAddr(rtl_uString *strDottedAddr, sal_Int32 Port)
Create an internet-address, consisting of host address and port.
Definition: socket.h:105
Definition: socket.h:195
Definition: socket.h:149
SAL_DLLPUBLIC void osl_addToSocketSet(oslSocketSet Set, oslSocket Socket)
Adds a socket to the set.
Definition: socket.h:163
Definition: socket.h:68
Definition: socket.h:100
Definition: socket.h:111
Definition: socket.h:200
oslAddrFamily
Represents the address-family of a socket.
Definition: socket.h:45
SAL_DLLPUBLIC sal_Int32 osl_demultiplexSocketEvents(oslSocketSet IncomingSet, oslSocketSet OutgoingSet, oslSocketSet OutOfBandSet, const TimeValue *pTimeout)
Checks multiple sockets for events.
SAL_DLLPUBLIC oslHostAddr osl_copyHostAddr(const oslHostAddr Addr)
Create a copy of the given Addr.
Definition: socket.h:123
Definition: socket.h:69
Definition: socket.h:174
Definition: socket.h:57
Definition: socket.h:175
SAL_DLLPUBLIC sal_Bool osl_setSocketOption(oslSocket Socket, oslSocketOptionLevel Level, oslSocketOption Option, void *pBuffer, sal_uInt32 BufferLen)
Sets the sockets attributes.
SAL_DLLPUBLIC oslSocket osl_createSocket(oslAddrFamily Family, oslSocketType Type, oslProtocol Protocol)
Create a socket of the specified Family and Type.
Definition: socket.h:136
Definition: socket.h:77
Definition: socket.h:49
Definition: socket.h:165
SAL_DLLPUBLIC sal_Int32 osl_getInetPortOfSocketAddr(oslSocketAddr Addr)
Retrieves the internet port-number of Addr.