getsockname()

Last-modified: 2006-12-10 (日) 02:52:50

[star] ソケットのローカルアドレスを取得
int getsockname (
  SOCKET s,
  struct sockaddr * name,
  int * namelen
);

[tip] パラメータ

s

  • [in] Descriptor identifying a socket.

name

  • [out] Pointer to a SOCKADDR structure that receives the address (name) of the socket.

namelen

  • [in, out] Size of the name buffer, in bytes.