Problem with simple concurrent server example


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Problem with simple concurrent server example
# 1  
Old 10-05-2012
Question Problem with simple concurrent server example

hi all my problem is i have programmed a server to accept multiple clients through concurrent server approach

Image

but when i try to execute the binding and connection accept works fine but the message at server side doesnt appear

files attached
# 2  
Old 10-05-2012
It does print the message, but since the author forgot to put a \n at the end, it doesn't get shown on screen, just saved in a buffer:

Code:
printf("server rcvd:%s\n",buff);

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Simple hello world server

Hi, I m beginner in shell programming, now I want to write a simple server that create a pipe and write "hello" on it. In an other hand, a client connect to this server, and retrieve this message. Thanks for you (4 Replies)
Discussion started by: boro82
4 Replies

2. AIX

Difference between concurrent and enhanced concurrent VG

Hi, What are the differences between concurrent and enhanced concurrent VGs.? Any advantages of enhanced concurrent VG over normal concurrent vg Regards, Siva (2 Replies)
Discussion started by: ksgnathan
2 Replies

3. Programming

please help a problem in client-server ipc message 2 pipes communication simple example

I want to have a message send & receive through 2 half-duplex pipes Flow of data top half pipe stdin--->parent(client) fd1--->pipe1-->child(server) fd1 bottom half pipe child(server) fd2---->pipe2--->parent(client) fd2--->stdout I need to have boundary structed message... (1 Reply)
Discussion started by: ouou
1 Replies

4. Programming

Concurrent TCP client/server

I made a program and now I need to make it concurrent. Can someone pls help me do this ? The code is this: #include <sys/types.h> #include <sys/socket.h> #include <sys/time.h> #include <netinet/in.h> #include <errno.h> #include <unistd.h> #include <stdio.h> #include <string.h>... (4 Replies)
Discussion started by: Johnny22
4 Replies

5. Shell Programming and Scripting

Simple HTTP server in GAWK

Hi, Not sure if this post belongs to this forum but I have been trying every so often to setup a simple http server in awk. After a couple of try and errors I finally came across this: REMCONF - TCP/IP Internetworking With `gawk' This tutorial is not to cut and paste without change, so here... (0 Replies)
Discussion started by: ripat
0 Replies

6. UNIX for Advanced & Expert Users

HOW to create UDP Concurrent Server

HI I want to create a UDP concurrent server can any one give the code for UDP concurrent server (8 Replies)
Discussion started by: chanikya
8 Replies

7. Shell Programming and Scripting

Simple rm commands in my server

Hi all, I have PLESK to manage my virtual dedicated server. The most recent version left a favicon.ico file in all my domains and subdomains. I want to delete them without having to go into each individual folder. So I'd like to remove favicon.ico from every subfolder of /var/www/vhosts/ ... (4 Replies)
Discussion started by: chickenhouse
4 Replies

8. IP Networking

Simple Web Server

Hi i am looking to design a simple web server for a local machine to work along dansgaudian. The server need to display a cgi perl script that gives the user notification of an 'Access Denied'. Has anyone got any ideas... anything will help, code ideas or design ideas. Thanks you Mark (1 Reply)
Discussion started by: cb.mark
1 Replies

9. IP Networking

concurrent udp server

Just like concurrent tcp server, anyone know how to design the concurrent udp server with the thread? it's best to give some basic examples,thanks (0 Replies)
Discussion started by: Frank2004
0 Replies

10. UNIX for Dummies Questions & Answers

simple client/server in linux

i am working on a C code, i have client and server client sends "list <foldername>" server needs to copy the files in the folder to a string. so that i can send that string back to the client. i heard there is a function to handle this in linux, do you know? (1 Reply)
Discussion started by: najdorf
1 Replies
Login or Register to Ask a Question