Monday, February 3, 2014

What to Do

Lab # 3 SOCKET PROGRAMMING Objective 1. Understand socket program with TCP and UDP. 2. Develop UDP guest/server programs for a straightforward application. Introduction Sockets are a instrument that all toldows programs to communicate, either on the same machine or crossways a ne 2rk. A program that wishes to receive a partnership from an some other(prenominal) program, asks the operating system to create a socket and defy it to nigh port. Then the program sits and listens on the socket it has created to receive entranceway connections. The other program also creates a socket for communicating with the receiver. The ships company call for to specify the IP address and the port calculate of the receiving end. If all goes well, and as we will see shortly, the two programs evince a communication through the network occasion their sockets. The two programs may exchange information, each by writing to and interpret from the socket i t has created. appointee 1. Develop a simple application over UDP, victimization port No. 5465 The client sends the message Hello universe of discourse to server. The server receives the message and prints the line on its standard output. |Server.pl recitation |Client.pl | | |use | |use | | |IO::Socket::INET; |IO::Socket::INET; | ! | | | |$server=IO::Socket::INET->new(LocalPort=>5465,Proto=>UDP); |$client=IO::Socket::INET->new(PeerPort=>5465,Proto=>UDP,PeerA| |...If you want to get a full essay, order it on our website: BestEssayCheap.com

If you want to get a full essay, visit our page: cheap essay

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.