Re: TCP Client socket in zweiten Thread



Hallo!

"Frank Steinmetzger" <"Warp_7@"@gmx.de> schrieb im Newsbeitrag
news:1gwuao9404ysy$.1l5si2lo07g4m.dlg@xxxxxxxxxxxxx
>
> Windows CE3.0 Application Programming von Nick Grattan:
> "Windows CE implements a subset of the Winsock 1.1 library found on
> desktop
> Windows, and Winsock itself is based around the Berkeley socket library.
> The major feature not supported by Windows CE is asynchronous mode. In
> Windows CE calls to Winsock functions will block (that is, not return),
> until the operation is complete."
>
> Oder habe ich das nur falsch interpretiert; daß mein Programm nur
> blockiert
> war, weil der Socket noch beim Verbindungsaufbau war?
>

Asynchron und non-blocking sind zwei verschiedene Sachen.

Die non-blocking Sockets verhindern Aktionen, die das Programm blockieren
würden. Ein recv wird mit einem Fehler quittiert, ein send sendet nur
soviel, bis der Socket blockieren würde. Das Schalten eines Sockets in
den non-blocking Modus geschieht über ioctlsocket, am besten führt man
das gleich nach deren Erzeugung und vor dem eigentlichen Verbindungs-
aufbau durch.

Asynchrone Sockets hingegen führen die Aktionen im Hintergrund durch,
hier werden im Gegensatz zu den non-blocking Sockets keine Fehler
generiert oder nur Teile durchgeführt. Asynchrone Sockets benutzen
andere Funktionen als die normalen Sockets (z.B. WSASend anstatt send).
Diese Funktionen sind in der MSDN für Windows CE nicht zu finden,
erst ab CE.Net sind sie dabei.

MfG
Andre Stille


.



Relevant Pages

  • Re: Socket communication on multihomed box
    ... LAN route before USB ... as for sockets, I'm using native syscalls, not MFC. ... Another thing is that is should work both under Linux and Windows. ...
    (microsoft.public.win32.programmer.networks)
  • Re: ooRexx - inter-program communication
    ... under Windows. ... I'm only considering pairs/triples/more of apps running on a single platform ... Can ooRexx programs communicate with each other? ... Are there any example programs showing use of sockets? ...
    (comp.lang.rexx)
  • Re: Socket communication on multihomed box
    ... LAN route before USB ... The thing is that connection MUST always stay open. ... as for sockets, I'm using native syscalls, not MFC. ... Another thing is that is should work both under Linux and Windows. ...
    (microsoft.public.win32.programmer.networks)
  • Re: linux to windows porting help
    ... I am working on a project that involves porting c programs from ... linux environment to windows environment. ... Any effort to move some decent software to the Windows platform ... all the networking headers with, add the relevant sockets ...
    (comp.programming)
  • Re: Is SOCKS a thing of the past?
    ... >> He means SOCKS as in SOCKS 4/5, not Sockets or Winsock. ... SOCKS isn't limited to windows. ... Winsock is a Windows API for TCP sockets. ...
    (comp.security.firewalls)