Results 1 to 9 of 9

Thread: socket details

  1. #1
    rob
    rob is offline Member
    Join Date
    Feb 2009
    Posts
    14
    Rep Power
    0

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

  2. #2
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    7

    Default 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,
    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  3. #3
    rob
    rob is offline Member
    Join Date
    Feb 2009
    Posts
    14
    Rep Power
    0

    Default

    10x Ill post if I find something useful

  4. #4
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    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.

  5. #5
    rob
    rob is offline Member
    Join Date
    Feb 2009
    Posts
    14
    Rep Power
    0

    Default

    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

  6. #6
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Check out JPCAP (I think that's what the library is called), maybe? Google that.

  7. #7
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    No, that is the size of buffer in the Java program, which sits far above the TCP/IP stack...

  8. #8
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    Default

    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.

  9. #9
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    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

  1. set jFileChooser default to details view
    By jacob6900 in forum AWT / Swing
    Replies: 7
    Last Post: 08-11-2014, 01:03 PM
  2. Jsp Project on Employee Details
    By 82rathi.angara in forum JavaServer Pages (JSP) and JSTL
    Replies: 8
    Last Post: 01-20-2014, 09:34 AM
  3. WAR issue,please see the details
    By milindvijayshah@gmail.com in forum Advanced Java
    Replies: 0
    Last Post: 07-25-2008, 10:51 AM
  4. Changing color of variables view details
    By mtoledo in forum Eclipse
    Replies: 0
    Last Post: 03-25-2008, 02:35 PM
  5. drop down box details info
    By eeau1973 in forum New To Java
    Replies: 0
    Last Post: 08-11-2007, 09:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •