TCP/IP in c (unix)


 
Thread Tools Search this Thread
Special Forums IP Networking TCP/IP in c (unix)
# 1  
Old 09-16-2005
TCP/IP in c (unix)

I have written a client receive (TCP/IP) program which is up all the time. It connects to the server during Beginning of the day and stays alert and reads a message whenever one comes in.

the problem is after receiving a message, the client_receive program is getting a message with zero bytes. Why I am getting the zero bytes? What is the reason. The server is still up and is running fine....
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Too much TCP retransmitted and TCP duplicate on server Oracle Solaris 10

I have problem with oracle solaris 10 running on oracle sparc T4-2 server. Os information: 5.10 Generic_150400-03 sun4v sparc sun4v Output from tcpstat.d script TCP bytes: out outRetrans in inDup inUnorder 6833763 7300 98884 0... (2 Replies)
Discussion started by: insatiable1610
2 Replies

2. HP-UX

Logging into UNIX via TCP/IP Telnet

I can connect to the UNIX box using a TCP/IP Telnet session but the UNIX does not respond with the login prompt. The box responds to a PING and the Telnet session actually connects, but no prompt of any sort is recieved back. I can connect via the console, get the login prompt and can login. ... (3 Replies)
Discussion started by: Newnix
3 Replies

3. Programming

[C++] [Unix] TCP non-blocking. Detect server disconnection procedure over, from client.

Hello! I searched forum for similar topic, with no luck, if you know one, delete this topic, and send me private message with link please. Little background: I have a lot of clients and one serwer. Client can make multiple connections on different ports and ips, but only one can be acctive... (2 Replies)
Discussion started by: ikeban
2 Replies

4. SCO

TCP in sco unix 3.2

Hi every body. I am looking for TCP package under sco unix 3.2 or sco xenix system. would you please help me? (7 Replies)
Discussion started by: javad1_maroofi
7 Replies

5. UNIX for Dummies Questions & Answers

TCP(?) Printing from Unix

I am trying to set up a unix server to print to a printer in another city. I've got a "Unix" guy helping me set up the printer on the unix box, but we are having trouble. The printer is located on an HP JetDirect 170x print server on a private network. On the router at that location, I have... (4 Replies)
Discussion started by: Bortiquai
4 Replies

6. SCO

all tcp are CLOSED on SCO Unix on VMWARE

Hi folks, First of all, sorry about my english, isn't the best and thks for advance. Here es my problem... I have virtualize an SCO unix with VMware ESX 3 and everything was going on beatifull until that i try to connect from anorther host, i can't do it so i check the connection with... (5 Replies)
Discussion started by: martocapo
5 Replies

7. UNIX for Dummies Questions & Answers

Unix stopping the tcp services

Hi There We currently experiencing a problem on our Unix server Sco 5.07 , whereby the tcp services stops on it own and even if we restart the services manually the services still does not come up,We loose the printer and pc connections to the server we then need to restart the Unix server in... (1 Reply)
Discussion started by: esh
1 Replies

8. UNIX for Dummies Questions & Answers

SCO UNIX "TCP/IP not licensed error"

I have been running 5.0.02 for more than 10 years in its present configuration. I am running a business software package on it (text based). I am trying to use my windows machines to access it through a program like "reflections" so that I can run my software from different systems but I get... (2 Replies)
Discussion started by: Parkegio
2 Replies

9. IP Networking

Unix Scripts & Counting TCP Connections

Here's a question I received on a test recently. I'm new to Linux/Unix so if this is easy, don't kill me. What scripting or tools could you use to count and sort the number of connections from each internal host? I'd appreciate any feedback and resources. "The Cisco PIX firewall provides... (5 Replies)
Discussion started by: daveohr
5 Replies

10. UNIX for Dummies Questions & Answers

Unix TCP/IP ping to other subnet

I have Digital UNIX V4.0B (Rev. 564) on alpha machine. I'm trying to acces network in subnet (192.168.1.x). Ip on Alpha comp. is from 192.168.3.X subnet. My default gateway on this network is 192.168.3.1 and it working OK from other machines. This machine is visible from same subnet... (2 Replies)
Discussion started by: ermingut
2 Replies
Login or Register to Ask a Question
SMTP-SOURCE(1)						      General Commands Manual						    SMTP-SOURCE(1)

NAME
smtp-source - multi-threaded SMTP/LMTP test generator SYNOPSIS
smtp-source [options] [inet:]host[:port] smtp-source [options] unix:pathname DESCRIPTION
smtp-source connects to the named host and TCP port (default: port 25) and sends one or more messages to it, either sequentially or in par- allel. The program speaks either SMTP (default) or LMTP. Connections can be made to UNIX-domain and IPv4 or IPv6 servers. IPv4 and IPv6 are the default. Note: this is an unsupported test program. No attempt is made to maintain compatibility between successive versions. Arguments: -4 Connect to the server with IPv4. This option has no effect when Postfix is built without IPv6 support. -6 Connect to the server with IPv6. This option is not available when Postfix is built without IPv6 support. -A Don't abort when the server sends something other than the expected positive reply code. -c Display a running counter that is incremented each time an SMTP DATA command completes. -C count When a host sends RESET instead of SYN|ACK, try count times before giving up. The default count is 1. Specify a larger count in order to work around a problem with TCP/IP stacks that send RESET when the listen queue is full. -d Don't disconnect after sending a message; send the next message over the same connection. -f from Use the specified sender address (default: <foo@myhostname>). -F file Send the pre-formatted message header and body in the specified file, while prepending '.' before lines that begin with '.', and while appending CRLF after each line. -l length Send length bytes as message payload. The length does not include message headers. -L Speak LMTP rather than SMTP. -m message_count Send the specified number of messages (default: 1). -M myhostname Use the specified hostname or [address] in the HELO command and in the default sender and recipient addresses, instead of the machine hostname. -N Prepend a non-repeating sequence number to each recipient address. This avoids the artificial 100% hit rate in the resolve and re- write client caches and exercises the trivial-rewrite daemon, better approximating Postfix performance under real-life work-loads. -o Old mode: don't send HELO, and don't send message headers. -r recipient_count Send the specified number of recipients per transaction (default: 1). Recipient names are generated by prepending a number to the recipient address. -R interval Wait for a random period of time 0 <= n <= interval between messages. Suspending one thread does not affect other delivery threads. -s session_count Run the specified number of SMTP sessions in parallel (default: 1). -S subject Send mail with the named subject line (default: none). -t to Use the specified recipient address (default: <foo@myhostname>). -T windowsize Override the default TCP window size. To work around broken TCP window scaling implementations, specify a value > 0 and < 65536. -v Make the program more verbose, for debugging purposes. -w interval Wait a fixed time between messages. Suspending one thread does not affect other delivery threads. [inet:]host[:port] Connect via TCP to host host, port port. The default port is smtp. unix:pathname Connect to the UNIX-domain socket at pathname. BUGS
No SMTP command pipelining support. SEE ALSO
smtp-sink(1), SMTP/LMTP message dump LICENSE
The Secure Mailer license must be distributed with this software. AUTHOR(S) Wietse Venema IBM T.J. Watson Research P.O. Box 704 Yorktown Heights, NY 10598, USA SMTP-SOURCE(1)