23 lines
376 B
C++
Executable File
23 lines
376 B
C++
Executable File
#ifdef RTP_SOCKETTYPE_WINSOCK
|
|
#include <winsock2.h>
|
|
#include <ws2tcpip.h>
|
|
#ifndef _WIN32_WCE
|
|
#include <sys/types.h>
|
|
#endif // !_WIN32_WCE
|
|
#else
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#endif // RTP_SOCKETTYPE_WINSOCK
|
|
|
|
int main(void)
|
|
{
|
|
int param;
|
|
int sock = 0;
|
|
struct sockaddr addr;
|
|
|
|
getsockname(sock,&addr,¶m);
|
|
|
|
return 0;
|
|
}
|