Thursday, May 17th 2012, 5:16pm UTC+2

You are not logged in.

  • Login
  • Register

WS00

Beginner

1

Thursday, May 28th 2009, 6:33pm

UDP on winsocket

HI,
using winsocket i've made the experience only TCP mode is activce, does not matter if i switch to udp mode or not.
i need a connection-less mode and so i need UDP. I switch to udp, start the applet, but it works always in TCP mode.
I tried when the applet was running in UDP mode, sending message in UDP mode, but no reaction. Opening a telnet
request i can see in the 'ConnectionRequest' procedure that the request arrives and if i needed i could handle with
accept and so on.
Any idea, proposal or experience ?

thanks
WS

A1880

Intermediate

Posts: 500

Location: Hanover, Germany

Occupation: Software Engineer

2

Thursday, May 28th 2009, 9:56pm

No Winsock support for UDP yet

Hi,
looking through the source code of Winsock in the Jabaco framework, I've got the impression that UDP is envisaged but not implemented yet.
The underlying sockets are TCP sockets rather than DataGram sockets. The protocol is registered as property but nowhere actually used.

You might want to extend the Winsock implementation yourself and donate the resulting code to the community?

Good luck!

A1880

Rate this thread
WoltLab Burning Board