comp.unix.programmer
  Home FAQ Contact Sign in
comp.unix.programmer only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.unix.programmer Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  echo client using threads         


Author: arnuld
Date: Jul 14, 2008 21:46

WANTED: This program is a TCP echo server-client. server is written using
poll() while client is written using threads.

1.) server recv()s some characters from a client and then echoes the
characters to all clients except the one who sent it.

2.) client has 2 threads, one thread send()s something to the server
once, 2nd thread waits infinitely for recv(), as I want the thread to
remain connected to recv() the input.

PROBLEM: one client disconnects as soon as another connects. after that
no client remains connected. After 2 or 3 attempts server
disconnects too.

I am at the bginning stage of learning TCP/IP things, as you already know
and most of the things I have written do not make much sense to me. e.g. I
do know what socket(), bind(), listen(), connect(), send() and recv() work
but I do not have much idea about how poll() works and when server poll()
starts etc. I just did it as told in UNP volume 1.

--------------------------- poll-server.c ------------------------------------
/* A server handeling multiple clients using poll()

VERSION: 1.1

*/
Show full article (8.92Kb)
20 Comments
  unix information         


Author: pavan
Date: Jul 14, 2008 16:49

Show full article (2.06Kb)
no comments
  CAR CHEAP INSURANCE         


Author: nancygroup2
Date: Jul 14, 2008 02:25

no comments
  Wrong ACS_HLINE in ncurses-program on Televideo tvi 990         


Author: j.rupp
Date: Jul 14, 2008 01:31

Hello,

I have a problem with horizontal Lines in a ncurses program by using
it on a Televideo Model 990,
under using it on my PC with Putty I've got no problems.
The error is only showing under Solaris, under Suse Linux it works
fine.

Here's my configuration:
- SunOS 5.6 Generic_105181-11 sun4u sparc SUNW,Ultra-1
- SunOS 5.9 Generic_112233-02 sun4u sparc SUNW,UltraAX-e2
- Suse Linux 2.2.16 (ohne Fehler)
- NCurses Version 5.6

In my program I show several horizontal lines, but on the Televideo
they shown as a underscore not as a line in the middle. But the last
character of the line is then a the right middle line character.
Show full article (1.24Kb)
no comments