× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Jim,

<snip>
> The SocketData field that holds the data
> portion of the packet is defined as a variable length field and we specify
> the length (%len) of the data string on the send function, but no matter
> what we do, we can't get the program to send the actual length of
> data down
</snip>

%len by itself returns the length of the field not the length of the data in
it.  To do that, you need this:

        %trim(%len(field))

so maybe that's all it is?

Phil



> -----Original Message-----
> From: midrange-l-admin@midrange.com
> [mailto:midrange-l-admin@midrange.com]On Behalf Of Jim W
> Sent: Thursday, October 18, 2001 4:57 PM
> To: MIDRANGE-L@midrange.com
> Subject: TCP/IP Sockets - Send length problem
>
>
> Hi All!
>
> Tried the archives, but didn't have any luck.  I'm sure someone
> has probably
> asked this before.
>
> We have a sockets application on the AS/400 that is talking to a PC based
> application running under Windows sockets.  Our interface is working well,
> except for one small problem.  The SocketData field that holds the data
> portion of the packet is defined as a variable length field and we specify
> the length (%len) of the data string on the send function, but no matter
> what we do, we can't get the program to send the actual length of
> data down
> the line.  The customer is getting our data string followed by a bunch of
> "@" (nulls) out to the end of the transmission.  (In some cases, according
> to a trace, it's the "Max segment size - 1458, other times it's
> the Max data
> length of our data field - 2048)  The customer only wants to see
> the actual
> length of the data comming to him.  He says that's all he sees from
> everybody else.
>
> How can we make the Socket Send function only send the data and then stop
> sending???
>
> TIA.
>
> Jim Whalen
> DCS Software and Services
> PH 972 429-8238
> jimw2001@hotmail.com
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
> _______________________________________________
> This is the Midrange Systems Technical Discussion (MIDRANGE-L)
> mailing list
> To post a message email: MIDRANGE-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
> or email: MIDRANGE-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/midrange-l.
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.