Download File
Download File
Download File
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Subject: NETWORK PROGRAMMING LAB Year : 2010<br />
Class : IV B-Tech C.S.E Semester: First<br />
WEEK 10:<br />
AIM: Design a UDP poll client server application to multiplex TCP and UDP requests<br />
for converting a given text in to upper case /* tcp_str_ser.c */<br />
#include <br />
#include <br />
#include <br />
#include <br />
#include <br />
#include <br />
#include <br />
#include /* close() */<br />
#include /* memset() */<br />
#define LOCAL_SERVER_PORT 1500<br />
#define MAX_MSG 100<br />
int main(int argc, char *argv[])<br />
{<br />
int sd, rc, n, cliLen, flags,x,l;<br />
struct sockaddr_in cliAddr, servAddr;<br />
char msg[MAX_MSG];<br />
/* socket creation */<br />
sd=socket(AF_INET, SOCK_DGRAM, 0);<br />
if(sd