Results 1 to 9 of 9
Thread: socket details
- 02-26-2009, 06:12 PM #1
Member
- Join Date
- Feb 2009
- Posts
- 14
- Rep Power
- 0
socket details
Hi,
Is it possible to get details (for example the number of segmentations) about the low level segmentation that happens when a server is transmitting to client through a tcp socket. When I say segmentation I mean the block/ packets in which data is segmented when it is being transmitted.
- 02-26-2009, 06:50 PM #2
Socket & more sockets...
I don't have the answer to your question, but here's some links the Java APIs about sockets that might help:
Socket (Java Platform SE 6)
SocketAddress (Java Platform SE 6)
SocketChannel (Java Platform SE 6)
SocketException (Java Platform SE 6)
THere's also classes for the following:
SocketFactory, SocketHandler, SocketImpl, etc...
Luck,
CJSLChris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
- 02-26-2009, 07:44 PM #3
Member
- Join Date
- Feb 2009
- Posts
- 14
- Rep Power
- 0
10x Ill post if I find something useful
- 02-26-2009, 11:10 PM #4
If I understand what you are asking correctly, that happens in the TCP/IP stack, at the OS level. AFAIK, packets are formed at the TCP, IP, and physical network (Ethernet) layers as well.
One of the goals of Java is insulate the application from that level. Socket doesn't seem to allow you to see much more than the application level buffer sizes.
- 03-02-2009, 08:11 AM #5
Member
- Join Date
- Feb 2009
- Posts
- 14
- Rep Power
- 0
I was reading and I came across the setReceiveBufferSize(). Do you think that this is to set the size of the low level TCP packets pls because I have not understood so well what I have read.
10x
- 03-02-2009, 08:17 AM #6
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Check out JPCAP (I think that's what the library is called), maybe? Google that.
- 03-03-2009, 02:31 AM #7
No, that is the size of buffer in the Java program, which sits far above the TCP/IP stack...
- 03-03-2009, 07:29 AM #8
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 5
Do you mind if I ask why you care? Usually, when someone wants low level information like this, it's because they don't understand that they don't need it.
If you are trying to program a new protocol, you probably need to write in native code.
- 03-03-2009, 02:33 PM #9
I was thinking along the same lines a Toadaly. I'm getting the impression that you're not an expert on TCP/IP (my bad if I'm wrong). Here's a link to a Wikipedia article that covers some of the basics.
From the Java perspective, you have no control over TCP/IP anyway. That's built in to the OS, and Java just interfaces to the OS-provided support. In general, you don't want to mess with the OS networking support, anyway. If you do, use C or C++.
Similar Threads
-
set jFileChooser default to details view
By jacob6900 in forum AWT / SwingReplies: 4Last Post: 12-02-2008, 05:45 PM -
WAR issue,please see the details
By milindvijayshah@gmail.com in forum Advanced JavaReplies: 0Last Post: 07-25-2008, 10:51 AM -
Jsp Project on Employee Details
By 82rathi.angara in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 06-16-2008, 03:12 PM -
Changing color of variables view details
By mtoledo in forum EclipseReplies: 0Last Post: 03-25-2008, 02:35 PM -
drop down box details info
By eeau1973 in forum New To JavaReplies: 0Last Post: 08-11-2007, 09:04 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks