C TCP/IP Reliable Transmission project not reliable


 
Thread Tools Search this Thread
Homework and Emergencies Homework & Coursework Questions C TCP/IP Reliable Transmission project not reliable
# 1  
Old 07-16-2013
Never mind, I had figured it out. It involved simply moving the fprintf calls in the main while loops in both runClient() and runServer() before I wrote the "bytes_read" to "bytes_written" and sent them back and forth. No assistance needed here now!
This User Gave Thanks to kowit010 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Is this website reliable ?

edit by bakunin: content not relevant for our site (and bordering on spam) SNIPped, thread closed. My suggestion is to - before even considering to buy anything online - put more effort in research, i.e. what the web site you write a comment at, is all about. This one here is definitely not for... (1 Reply)
Discussion started by: ethansk
1 Replies

2. Ubuntu

Reliable Video Editing & DVD Burning

I have just about given up trying to find a reliable package. Imagination - Pitvi - Openshot - DVD Styler are just some of those tried, but even if success has been achieved in exporting a viable result - Brasero will not burn it this includes VOB files. It seems that there is no alternative to... (1 Reply)
Discussion started by: Royalist
1 Replies

3. SuSE

Is OpenSuSE 12.1 stable and reliable?

Hi, We are ready to update OpenSuSE for our web servers from 11.2 to either 11.4 or 12.1. 12.1 is still a beta version. Is it stable and reliable enough for production servers? Please share your valuable experiences. Thank you in advance! (5 Replies)
Discussion started by: aixlover
5 Replies

4. Programming

Reliable management of signal SIGPIPE and SIGTERM

I' m note very expert in the reliable manage of signal... but in my server I must manage SIGPIPE for the socket and SIGTERM... I've wrote this but there is something wrong... Can someone explain me with some example the reliable management of signal?? This is what I've wrote in the server ... (2 Replies)
Discussion started by: italian_boy
2 Replies

5. Programming

reliable udp and socket programming

could somebody give me hand programming the attached request. my code isn't complete and i do not really understand how should i implement that. (1 Reply)
Discussion started by: makaveli_
1 Replies

6. Shell Programming and Scripting

Most reliable way to store file contents in an array in bash

Hi Guys, I have a file which has numbers in it separated by newlines as follows: 1.113 1.456 0.556 0.021 -0.541 -0.444 I am using the following code to store these in an array in bash: FILE14=data.txt ARRAY14=(`awk '{print}' $FILE14`) (6 Replies)
Discussion started by: npatwardhan
6 Replies

7. AIX

Reliable dual-boot method for 5.3 and 6.1

Hi All, I am looking for information and advice on a reliable method to support the dual booting between AIX 5.3 and AIX 6.1 I have a 7029-6E3 with 2 x 36Gb disks, hdisk0 (altinst_rootvg) and hdisk1 (rootvg) I have previously used alt_disk_install to upgrade from 5.1->5.3, and now from... (2 Replies)
Discussion started by: KevB
2 Replies

8. Shell Programming and Scripting

Good (reliable!) check if user exists

Hi all, I've been trying to find a good check I can put it in to a shell script to see if a given user exists. Some of the things I've thought about is checking whether they have a home directory, but not all users have a home directory. I've thought about grepping the /etc/passwd file for... (4 Replies)
Discussion started by: _Spare_Ribs_
4 Replies
Login or Register to Ask a Question
tcp-env(1)                                                    General Commands Manual                                                   tcp-env(1)

NAME
tcp-env - set up TCP-related environment variables SYNOPSIS
tcp-env [ -rR ] [ -ttimeout ] program [ arg ... ] DESCRIPTION
The input for tcp-env must be a TCP connection. tcp-env finds out information about that connection, puts the information into several environment variables as described in tcp-environ(5), and runs program with the given arguments. Usually tcp-env is run from inetd. It might instead be run from another server that already sets up the right environment variables; if PROTO is set to TCP when tcp-env is invoked, tcp-env assumes that all the other variables are set up properly, and it does not check whether the input is a TCP connection. OPTIONS
-r (Default.) Attempt to obtain TCPREMOTEINFO from the remote host. -R Do not attempt to obtain TCPREMOTEINFO from the remote host. -ttimeout Give up on the TCPREMOTEINFO connection attempt after timeout seconds. Default: 30. SEE ALSO
tcp-environ(5), inetd(8) tcp-env(1)