Updating the JDK use in .NET !

  • Thread starter Thread starter =?ISO-8859-1?Q?St=E9phane_Postollec?=
  • Start date Start date
?

=?ISO-8859-1?Q?St=E9phane_Postollec?=

Hi,

I'm writing some code for transferring datas between a C++ code (as
Server) and a J# code (as Client) with a Socket.
It works well but i realize that the size of my receiving buffer (in the
J# program) are very small.

I use java.net.socket and i know that there is a function call
SetReiceiveBufferSize() to specify the size of the buffer. But the
problem is that this functionnality is in the JDK 1.2 version whereas
the JDK in .NET is 1.1.4 !

Thus i'm looking for a solution to :

- update the JDK included in .NET to be compliant with the 1.4 java JDK
(the official)
- or a method to set the size of the receiving buffer for a java.net.socket

Thanks in advance.

Stephane
 
Stéphane Postollec said:
Hi,

I'm writing some code for transferring datas between a C++ code (as
Server) and a J# code (as Client) with a Socket. It works well but i
realize that the size of my receiving buffer (in the J# program) are
very small.

I use java.net.socket and i know that there is a function call
SetReiceiveBufferSize() to specify the size of the buffer. But the
problem is that this functionnality is in the JDK 1.2 version whereas
the JDK in .NET is 1.1.4 !

Thus i'm looking for a solution to :

- update the JDK included in .NET to be compliant with the 1.4 java
JDK (the official) - or a method to set the size of the receiving
buffer for a java.net.socket

I guess the only way is to replace java.net.Socket with
System.Net.Sockets.Socket. Like Visual J++, J# is stuck at JDK 1.1.4.

Cheers,
 
Back
Top