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



Yep I have put my Java source and what is the Server pgm im using


Chamara

On Sat, Feb 5, 2011 at 9:28 AM, Michael Ryan <michaelrtr@xxxxxxxxx> wrote:

Scott asked for more information. Did you provide more information?

On Fri, Feb 4, 2011 at 10:16 PM, Chamara Withanachchi
<chamaraw@xxxxxxxxxx> wrote:
Hi,

Im waiting someones idea on this


Chamara

On Wed, Feb 2, 2011 at 8:38 AM, Chamara Withanachchi <
chamaraw@xxxxxxxxxx>wrote:

Hi Scott,

Bellow is my Test Java Program which sends a MSG to RPG

<Code>
import java.lang.*;
import java.io.*;
import java.net.*;

class Client {
public static void main(String args[]) {

String data="sanasa test data";
System.out.println(data);

try {
/**
* Encoding ASCII data to EBCDIC format
*/
String encoding = "Cp1047";
String unicodeMessage = "r 123 1000 0775432015";
byte[] ebcdicMessages = unicodeMessage.getBytes( encoding );
System.out.println(ebcdicMessages);

//10.101.6.201
//10.100.19.28
//127.0.0.1
Socket socket = new Socket("10.101.6.201", 4000);
PrintWriter out = new PrintWriter(socket.getOutputStream(), true);
out.print(data);

out.close();
socket.close();

}
catch(Exception e) {
System.out.println("Error");
}
}
}

</code>

and Im using SERVEREX2 in your SOCKTUT Project


Chamara


On Tue, Feb 1, 2011 at 11:38 PM, Scott Klement <
rpg400-l@xxxxxxxxxxxxxxxx>wrote:

Hi Chamara,

Please provide more information. Think of how many billions of
possible
applications can use TCP/IP Socket communication[SIC]. Do you think
that when you say that, it gives us enough information to see where
your
error might be?

You also say that the other side is Java running on Linux. Do you
think
that tells us enough about the program that we can think about the
mistakes that might be made?

I mean... think about it... are you really providing enough
information?
The operating system, and the programming language are the only pieces
of information needed to troubleshoot a program?



On 2/1/2011 6:09 AM, Chamara Withanachchi wrote:
Dear All,

I'm trying to use Scott's SOCKUTILR4 Program to do some TCP/IP Socket
communication. Problem is When I telnet to designated port it accepts
the
connection and read the telnet session buffer without any Issue. But
when I
use our Java program to communicate to the port I can see it is
listening to
port but it does not show the data which Im sending from Java
Program.

My Java Program is in a Linux server in the same network.

Does any one have an Idea ?



--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




--
Regards,

Chamara Withanachchi
IBM Certified Power System Expert
RPG Programmer
(owner of www.rpgiv.info)

WWW.RPGIV.INFO
Mob: +94 77 1678646
chamaraw@xxxxxxxxxx

i want to be future ready. i want control. i want an i.




--
Regards,

Chamara Withanachchi
IBM Certified Power System Expert
RPG Programmer
(owner of www.rpgiv.info)

WWW.RPGIV.INFO
Mob: +94 77 1678646
chamaraw@xxxxxxxxxx

i want to be future ready. i want control. i want an i.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





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.