Groups | Blog | Home
all groups > vj# > march 2005 >

vj# : How to use JDK 1.4 functionnalities under .NET J# ?


Stéphane_Postollec
3/31/2005 7:35:01 PM
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.

Manuel J. Goyenechea
4/2/2005 3:16:53 AM
You can use the .NET Framework APIs and not use java.net.Socket.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemnetsocketstcpclientmemberstopic.asp

Have fun...

[quoted text, click to view]

AddThis Social Bookmark Button