Sponsored Content
Special Forums IP Networking TCP Programming problems with 'recv' Post 28096 by Neo on Thursday 12th of September 2002 05:17:53 PM
Old 09-12-2002
When you create a TCP/IP connection the received side and the transmit side work together, when playing client-server.

If you use a TCP socket to send 100 bytes and you use a TCP socket to receive 100 bytes or more, you are ok.

If the client socket sends one byte / char at a time (like TELNET does) then you will only receive one byte / char at a time.
 

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
socket.h(3)						     Library Functions Manual						       socket.h(3)

NAME
socket.h - Network addresses and sockets related classes. SYNOPSIS
#include <cc++/address.h> Classes class ost::Socket The Socket is used as the base for all Internet protocol services under Common C++. class ost::DCCPSocket DCCP sockets are used for stream based connected sessions between two sockets. class ost::UDPSocket UDP sockets implement the TCP SOCK_DGRAM UDP protocol. class ost::UDPBroadcast Representing a UDP socket used for subnet broadcasts, this class provides an alternate binding and setPeer() capability for UDP sockets. class ost::UDPTransmit Representing half of a two-way UDP connection, the UDP transmitter can broadcast data to another selected peer host or to an entire subnet. class ost::UDPReceive Representing half of a two-way UDP connection, the UDP receiver can receive data from another peer host or subnet. class ost::UDPDuplex UDP duplex connections impliment a bi-directional point-to-point UDP session between two peer hosts. class ost::TCPSocket TCP sockets are used for stream based connected sessions between two sockets. class ost::TCPV6Socket TCPV6 sockets are used for stream based connected sessions between two ipv6 sockets. class ost::TCPStream TCP streams are used to represent TCP client connections to a server by TCP protocol servers for accepting client connections. class ost::TCPSession The TCP session is used to primarily to represent a client connection that can be managed on a separate thread. class ost::SimpleTCPStream Simple TCP Stream, to be used with Common C++ Library. Namespaces namespace ost Macros #define INVALID_SOCKET -1 #define _IOLEN64 #define _IORET64 #define MSG_DONTWAIT 0 #define MSG_NOSIGNAL 0 #define SOCK_DCCP 6 #define IPPROTO_DCCP 33 #define SOL_DCCP 269 #define DCCP_SOCKOPT_AVAILABLE_CCIDS 12 #define DCCP_SOCKOPT_CCID 13 #define DCCP_SOCKOPT_TX_CCID 14 #define DCCP_SOCKOPT_RX_CCID 15 Typedefs typedef int SOCKET Variables class __EXPORT ost::SimpleTCPStream Detailed Description Network addresses and sockets related classes. Macro Definition Documentation #define _IOLEN64 Referenced by ost::SocketPort::peek(), ost::UDPSocket::peek(), ost::TCPStream::peek(), ost::SocketPort::receive(), ost::UDPReceive::receive(), ost::SocketPort::send(), ost::UDPTransmit::send(), and ost::UDPTransmit::transmit(). #define _IORET64 #define DCCP_SOCKOPT_AVAILABLE_CCIDS 12 #define DCCP_SOCKOPT_CCID 13 #define DCCP_SOCKOPT_RX_CCID 15 #define DCCP_SOCKOPT_TX_CCID 14 #define INVALID_SOCKET -1 #define IPPROTO_DCCP 33 #define MSG_DONTWAIT 0 Referenced by ost::UDPTransmit::transmit(). #define MSG_NOSIGNAL 0 Referenced by ost::UDPTransmit::send(), and ost::UDPTransmit::transmit(). #define SOCK_DCCP 6 #define SOL_DCCP 269 Typedef Documentation typedef int SOCKET Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 socket.h(3)
All times are GMT -4. The time now is 06:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy