ServerSocket and UDP
Posted on 1997-05-11
Can someone help me with the following problems:
When I set up a ServerSocket and use a Socket with its stream flag set to true, everything is working fine but once I set the flag to false(ie UDP) there doesn't seem to be a connection... UDP can't be that unrealiabe since I am sending from one window(for serevr) to another(the socket). Where could I have gone wrong?
Also if I use,eg
OutputStream outstream = myserver.getOutputStream();
how much data can I send thru outstream.write(mydata) before mydata is actually send out. Is there a way for me to set the system buffer?
Is there a Java equivalent to C's union?