Sponsored Content
Special Forums IP Networking TCP Programming problems with 'recv' Post 27842 by KrazyGuyPaul on Sunday 8th of September 2002 09:23:13 AM
Old 09-08-2002
Question TCP Programming problems with 'recv'

Hey,

I am learning to program a TCP server and managed to get it up and running (I am using Windows 98SE).

I can use the send function to send information to the client and I can use the recv function to ask the user to pass information through, but when I do so it only allows the client to send one character and then adds a load of jibberish symbols to the string.

I think the problem may have to do with the flags (I am using 0), but this is what I have:

recv(ServerDesc,ClientInput,30,0);

Could someone please tell me what I am doing wrong, or if there is an easier way to do what I'm trying to do? Any advice would be fantastic.

Paul
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to subtract 2 hours from 'date' in shell ( /bin/sh ) script ?

I write a sh script that zip and copy to tape all files that older then 2 hours. 1. The way I choose is - touch a file with "now - 2 hours", then use fine with '! -newer' 2. Do you have any other idea to do it ? tnx. (1 Reply)
Discussion started by: yairon
1 Replies

2. Programming

i can't use 'make' in my computer?

I need to compile a file,but 'make' does not work.please tell me how to use it or need which tools? (3 Replies)
Discussion started by: dsun5
3 Replies

3. UNIX for Advanced & Expert Users

'make' problems (compliation problems?)

I'm trying to compile and install both most recent version of 'make' and the most recent version of 'openssh' on my Sparc20. I've run into the following problems... and I don't know what they mean. Can someone please help me resolve these issues? I'm using the 'make' version that was... (5 Replies)
Discussion started by: xyyz
5 Replies

4. Shell Programming and Scripting

Clearify what it means under 'WHAT' when hit the 'w'-command

I wonder how I shall read the result below, especially 'what' shown below. The result was shown when I entered 'w'. E.g what is TOP? What is gosh ( what does selmgr mean?)? login@ idle JCPU PCPU what 6:15am 7:04 39 39 TOP 6:34am 6:45 45 45 TOP 6:41am ... (1 Reply)
Discussion started by: Aelgen
1 Replies

5. UNIX for Advanced & Expert Users

Terminal 'Local Echo' lost on Modem Dial-out

Can anybody help me? I am developing a utility for automating message paging to a BT alphanumeric pager. I am using a USR 56K Fax-modem connected to /dev/cuab on a Sun Ultra-10. I am using the UNIX 'tip' utility to connect to the modem and I have configured the modem as follows: Baud Rate:... (2 Replies)
Discussion started by: mybeat
2 Replies

6. Filesystems, Disks and Memory

HELP! The '/var/adm/message' file increase every few seconds???

Hi, guys, I have a big problem. I've got a sun solaris 4.1.4 workstation, and the /var/adm/message file will add one row every few seconds. It soon becomes a large file. I wander if there are some mistakes configuring the workstation. the /var/adm/message is as follow: ... (1 Reply)
Discussion started by: cloudsmell
1 Replies

7. UNIX for Dummies Questions & Answers

HELP! The '/var/adm/message' file increase every few seconds???

Hi, guys, I have a big problem. I've got a sun solaris 4.1.4 workstation, and the /var/adm/message file will add one row every few seconds. It becomes a large file in a short time. I wander if there are some mistakes configuring the workstation. the /var/adm/message is as follow: ... (3 Replies)
Discussion started by: cloudsmell
3 Replies

8. UNIX for Dummies Questions & Answers

quoting echo 'it's friday'

echo 'it's friday' why appear the > (3 Replies)
Discussion started by: yls177
3 Replies

9. UNIX for Advanced & Expert Users

How to remove a file with a leading dash '-' in it's name?

Somehow someone created a file named '-ov' in the root directory. Given the name, the how was probably the result of some cpio command they bozo'ed. I've tried a number of different ways to get rid of it using * and ? wildcards, '\' escape patterns etc.. They all fail with " illegal option --... (3 Replies)
Discussion started by: GSalisbury
3 Replies

10. Shell Programming and Scripting

What are the differences between 'bash' and 'sh'

Hopefully this doesn't come off as too much of a "newbie" question or a flamebait. But I have recently begun working with a Sun Solaris box after having spent the past five years working with RedHat. From what i can tell, thing look fairly similar and the 'man' command is some help. But I've... (7 Replies)
Discussion started by: deckard
7 Replies
JACK.UDP(1)															       JACK.UDP(1)

NAME
jack.udp - JACK UDP Transport Client SYNOPSIS
jack.udp [options] send|recv OPTIONS
-b : Set the ring buffer size in frames (default=4096). -c : Set the client name (default=jack.udp-PID). -n : Set the number of channels, and therefore the number of JACK ports (default=2). -p : Set the port number (default=57160). -r : The remote host name, for use in send mode (default="127.0.0.1"). DESCRIPTION
jack.udp is a UDP audio transport mechansim for JACK. The send mode reads signals from a set of JACK input ports and sends UDP packets to the indicated port at the indicated host at a rate determined by the local JACK daemon. The recv mode reads incoming packets at the indi- cated port and writes the incoming data to a set of JACK output ports at a rate that is determined by the local JACK daemon. This transport mechanism is unreliable. Both send and recv clients will report buffer overflow and underflow occurences, and recv clients will report dropped and out-of-order packets, and shutdown on channel mismatch packets. In practice this mechanism can be made highly reli- able over local networks. jack.udp implements no connection logic, use jack.plumbing(1) instead. EXAMPLE
192.0.0.1:~$ jack.udp -r 192.0.0.2 send 192.0.0.2:~$ jack.udp recv AUTHOR
Rohan Drape http://slavepianos.org/rd/ SEE ALSO
jackd(1) AUTHOR
Rohan Drape <rd@slavepianos.org> Author. 01/10/2012 JACK.UDP(1)
All times are GMT -4. The time now is 02:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy