12.07.2015 Views

Developement Of An Instrument Landing Simulation ... - Cal Poly

Developement Of An Instrument Landing Simulation ... - Cal Poly

Developement Of An Instrument Landing Simulation ... - Cal Poly

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

{// This function sets the server socket. It lets the system// determine the port number. The function returns the server// socket number.SOCKET srv_socket = 0;struct sockaddr_in local;// socket address for local sideint len = sizeof(local); /* length of local address */// create the socketsrv_socket=socket(AF_INET,SOCK_DGRAM,0);// bind the socket to a port, let the system decide the numberlocal.sin_family = AF_INET; /* internet family */local.sin_addr.s_addr = INADDR_ANY; /* wild card machine address */local.sin_port = Service_Port; /* choose the port */bind(srv_socket, (struct sockaddr *) &local, sizeof(local));//bind the name (address)to a port}return srv_socket;/* Function: mdlTerminate =========================================100

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!