Results 1 to 2 of 2

Thread: Sending Data with a socket

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Posts
    11

    Sending Data with a socket

    A while ago I had made a vb program to send packets and I was able to send the data exactly as I wanted it e.g
    VB Code:
    1. Winsock1.SendData Chr(&H0) & Chr(&H1) & Chr(&H2)
    and the data would appear as exactly that: 00 01 02

    I now want to do the same thing with java but I havnt been able to find a way of doing this, does anyone know how?

    Thanks in advance~

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Sending Data with a socket

    in java we use ServerSocket class instead of WinSocks and ObjectOutputStream to send data
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

Posting Permissions

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



Click Here to Expand Forum to Full Width