Sponsored Content
Top Forums Programming TCP/IP, how to verify delivery? Post 302417403 by DreamWarrior on Thursday 29th of April 2010 12:31:40 PM
Old 04-29-2010
Quote:
Originally Posted by Corona688
Like I said, a similar effect could be achieved by making your transmit buffer really small, though I don't know how this could be done per-connection.
I'm not sure it can be done per-connection, I think those settings for the tcp send/receive space are across the board.

I believe I can set the high/low water marks per connection. I believe these control when a socket becomes writable (as per poll/select). But...I'm not sure that's a "good" idea. It'd seem like I'd have to do something like write the whole "message", reduce the water mark to 0, then call poll/select until it returns that the socket is writable, then reset the water mark to it original value for the next message. But...that seems, hokey....and I'm not sure it'd be reliable.... Ideas?
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Mail delivery confirmation

If I am sending mail with this command: mail .......@whatever.com < filename, is it possible to get delivery confirmation? Thanks (3 Replies)
Discussion started by: CSGUY
3 Replies

2. UNIX for Advanced & Expert Users

Delivery Failure notice when aliase has added

Hi Team, Mails are coming proper on my server. But when i added a sendmail(/etc/mail/aliases) alias to redirect mails to a script, Its started giving delivery failure for the same id. Can you tell me what can be the possible reason for this?and how can we sort it out. Its very urgent for me... (3 Replies)
Discussion started by: mindtee_abhi
3 Replies

3. AIX

Issues on email delivery

Hello, there is a problem when using sendmail to certain destinations, basically the recipient will reject the incoming message because the user@local.domain.com is used as the sender (Return-Path), they would verify local.domain.com is not a valid DNS record which is true because it is a local... (11 Replies)
Discussion started by: neil_is_ere
11 Replies

4. UNIX for Dummies Questions & Answers

sendmail weird Local Delivery Problem

Hi Guys, Just joined the forum though I have been lurking here for many years now. Wondering if anyone can help me out with a problem that I'm currently having. :wall: I have a few servers that are relaying all email off of the box to an exchange server. There is a SmartHost configured in... (7 Replies)
Discussion started by: PACETREE
7 Replies

5. 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

6. Shell Programming and Scripting

Smtp dual delivery script

Hello Peoples, I have a problem wrapping my head around a script that I modified, essentially it uses the postfix smtp line in master.cf to send out a message to two or more email servers, It is a nice way to test different email servers and platforms. Problem with the original script is that it... (0 Replies)
Discussion started by: SeSe
0 Replies

7. IP Networking

DNS config preventing mail delivery

Hi Please can you help on this: the Net Admins decided to use DNS to resolve names, so this is preventing mail being delivered when using commands like date | mailx -s "test" abc.xyz@asdf.xx.yy. What we were asked was to edit /etc/resolv.confand add 3 entries, in all servers (10 Replies)
Discussion started by: fretagi
10 Replies

8. UNIX and Linux Applications

Qmail mail delivery problem

Dear Concern, As per below article, we have configured qmail in our system. THE LINUX STUFF: qmail Installation Steps on Linux But when we try to send any mail in own domain, got below error message. Please advise. Apr 17 17:01:20 BLAUDITSCPTEST sendmail: alias database /etc/aliases... (0 Replies)
Discussion started by: makauser
0 Replies
send(3XNET)					   X/Open Networking Services Library Functions 				       send(3XNET)

NAME
send - send a message on a socket SYNOPSIS
cc [ flag ... ] file ... -lxnet [ library ... ] #include <sys/socket.h> ssize_t send(int socket, const void *buffer, size_t length, int flags); PARAMETERS
socket Specifies the socket file descriptor. buffer Points to the buffer containing the message to send. length Specifies the length of the message in bytes. flags Specifies the type of message transmission. Values of this argument are formed by logically OR'ing zero or more of the fol- lowing flags: MSG_EOR Terminates a record (if supported by the protocol) MSG_OOB Sends out-of-band data on sockets that support out-of-band communications. The significance and semantics of out-of-band data are protocol-specific. DESCRIPTION
The send() function initiates transmission of a message from the specified socket to its peer. The send() function sends a message only when the socket is connected (including when the peer of a connectionless socket has been set via connect(3XNET)). The length of the message to be sent is specified by the length argument. If the message is too long to pass through the underlying proto- col, send() fails and no data is transmitted. Successful completion of a call to send() does not guarantee delivery of the message. A return value of -1 indicates only locally-detected errors. If space is not available at the sending socket to hold the message to be transmitted and the socket file descriptor does not have O_NON- BLOCK set, send() blocks until space is available. If space is not available at the sending socket to hold the message to be transmitted and the socket file descriptor does have O_NONBLOCK set, send() will fail. The select(3C) and poll(2) functions can be used to determine when it is possible to send more data. The socket in use may require the process to have appropriate privileges to use the send() function. USAGE
The send() function is identical to sendto(3XNET) with a null pointer dest_len argument, and to write() if no flags are used. RETURN VALUES
Upon successful completion, send() returns the number of bytes sent. Otherwise, -1 is returned and errno is set to indicate the error. ERRORS
The send() function will fail if: EAGAIN The socket's file descriptor is marked O_NONBLOCK and the requested operation would block. EWOULDBLOCK EBADF The socket argument is not a valid file descriptor. ECONNRESET A connection was forcibly closed by a peer. EDESTADDRREQ The socket is not connection-mode and no peer address is set. EFAULT The buffer parameter can not be accessed. EINTR A signal interrupted send() before any data was transmitted. EMSGSIZE The message is too large be sent all at once, as the socket requires. ENOTCONN The socket is not connected or otherwise has not had the peer prespecified. ENOTSOCK The socket argument does not refer to a socket. EOPNOTSUPP The socket argument is associated with a socket that does not support one or more of the values set in flags. EPIPE The socket is shut down for writing, or the socket is connection-mode and is no longer connected. In the latter case, and if the socket is of type SOCK_STREAM, the SIGPIPE signal is generated to the calling thread. The send() function may fail if: EACCES The calling process does not have the appropriate privileges. EIO An I/O error occurred while reading from or writing to the file system. ENETDOWN The local interface used to reach the destination is down. ENETUNREACH No route to the network is present. ENOBUFS Insufficient resources were available in the system to perform the operation. ENOSR There were insufficient STREAMS resources available for the operation to complete. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
connect(3XNET), getsockopt(3XNET), poll(2), recv(3XNET), recvfrom(3XNET), recvmsg(3XNET), select(3C), sendmsg(3XNET), sendto(3XNET), set- sockopt(3XNET), shutdown(3XNET), socket(3XNET), attributes(5), standards(5) SunOS 5.10 1 Nov 2003 send(3XNET)
All times are GMT -4. The time now is 11:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy