|
-
Mar 18th, 2005, 12:35 AM
#1
Thread Starter
Addicted Member
Socket Programming
Hi All,
Thanks for Reading. I have a socket server written in Java. Any idea how I can connect with this server using Winsock and send and recieve a file???
Thanks,
Prez
-
Mar 18th, 2005, 12:02 PM
#2
PowerPoster
Re: Socket Programming
Doesn't Java use Winsock as well???
Anyway, it shouldn't matter where the connection comes from they will be able to connect, it is dealing with the difference in how data is interpreted by each langauge which can be a problem.
Lately I've been using telnet to connect to my server for testing purpose's...
A connection is a connection unless the protocls are completly different. (TCP, UDP, etc)
"From what was there, and was meant to be, but not of that was faded away." - - Steve Damm
"The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm
"When you do things right, people won't be sure if you did anything at all." - - God from Futurama
-
Mar 18th, 2005, 01:48 PM
#3
Frenzied Member
Re: Socket Programming
I have done Java client and VB server, passing UDT type structures. In the Java client I use DataInputStream and DataOutputStream. The VB server converts the UDT to/from a byte array when sending/receiving.
The type of data in the file may determine the type of stream that you use.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|