PDA

Click to See Complete Forum and Search --> : Sending Data with a socket


PhoenixStorm
Dec 17th, 2005, 01:49 AM
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
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~

ComputerJy
Dec 17th, 2005, 08:00 AM
in java we use ServerSocket class instead of WinSocks and ObjectOutputStream to send data