Functions | Variables
sockstd.c File Reference

Go to the source code of this file.

Functions

 main (int argc, argv)
 
int make_socket_port (int port)
 
 memset (serverAddr, 0, sizeof(*serverAddr))
 
 return (serverAddr)
 

Variables

serverAddr sin_addr s_addr = htonl(INADDR_ANY)
 
 serverAddr =(struct sockaddr_in *)malloc(sizeof(struct sockaddr_in))
 
serverAddr sin_family = AF_INET
 
serverAddr sin_port = htons(port_no)
 

Function Documentation

◆ main()

main ( int  argc,
argv   
)

Definition at line 71 of file sockstd.c.

◆ make_socket_port()

int make_socket_port ( int  port)

Definition at line 50 of file sockstd.c.

◆ memset()

memset ( serverAddr  ,
,
sizeof *  serverAddr 
)

◆ return()

return ( serverAddr  )

Variable Documentation

◆ s_addr

serverAddr sin_addr s_addr = htonl(INADDR_ANY)

Definition at line 46 of file sockstd.c.

◆ serverAddr

serverAddr =(struct sockaddr_in *)malloc(sizeof(struct sockaddr_in))

Definition at line 41 of file sockstd.c.

◆ sin_family

serverAddr sin_family = AF_INET

Definition at line 44 of file sockstd.c.

◆ sin_port

serverAddr sin_port = htons(port_no)

Definition at line 45 of file sockstd.c.



euslisp
Author(s): Toshihiro Matsui
autogenerated on Mon Feb 28 2022 22:18:28