C: UDP send & receive packets?

The steps involved in establishing a socket on the client side are as follows.

The steps involved in establishing a socket on the client side are as follows: Create a socket with the socket() system call Connect the socket to the address of the server using the connect() system call Send and receive data. There are a number of ways to do this, but the simplest is to use the read() and write() system calls. The steps involved in establishing a socket on the server side are as follows: Create a socket with the socket() system call Bind the socket to an address using the bind() system call.

For a server socket on the Internet, an address consists of a port number on the host machine. Listen for connections with the listen() system call Accept a connection with the accept() system call. This call typically blocks until a client connects with the server.

Send and receive data Check to see if you have followed these steps thusfar with the code you have written.

Could you post / link to some example code.. I'm fairly new to C and don't really know how to handle the socket api, sry.. – JNK Dec 25 '10 at 21:56 @JNK - sure thing, I should have included this url to begin with linuxhowtos. Org/C_C++/socket. Htm – THE DOCTOR Dec 25 '10 at 22:03.

For socket programming introduction, see beej.us/guide/bgnet.

User502515 Thx for the link… I already read some parts of it but I'm still not quite sure how to put everything together… – JNK Dec 25 '10 at 21:17.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions