Re: [twsocket] Using TWSocket for UDP

2011-03-14 Thread Francois PIETTE
If I use TWSocket in UDP mode, do I require 2 TWSocket components (1 to Send and 1 to listen) is this correct ??or can 1 TWSocket be used to send and listen to UDP data Only one is enough. The one which listen may also send UDP datagrams to a specific host using SendTo method. Also

[twsocket] Using TWSocket for UDP

2011-03-14 Thread RayA @ Ihug
Hi all.. If I use TWSocket in UDP mode, do I require 2 TWSocket components (1 to Send and 1 to listen) is this correct ??or can 1 TWSocket be used to send and listen to UDP data Thanks for any help Ray -- To unsubscribe or change your settings for TWSocket mailing list please go

Re: [twsocket] Using TWSocket udp listening in Windows serviceapplication

2010-02-18 Thread Francois PIETTE
I wonder is it possible to use TWSocket in Windows service application? Yes, see sample OverbyteIcsSvcTcp I tried the same code as in udplstn.dpr and can't make it work. I guess it could be related to the fact that windows messages used to signal socket events and it may not work in service. A

Re: [twsocket] Using TWSocket udp listening in Windows service application

2010-02-18 Thread Angus Robertson - Magenta Systems Ltd
> I wonder is it possible to use TWSocket in Windows service > application? I tried the same code as in udplstn.dpr and can't make > it > work. I guess it could be related to the fact that windows messages > used to signal socket events and it may not work in service. Am I > right? TWSocket works

[twsocket] Using TWSocket udp listening in Windows service application

2010-02-18 Thread Eugene Kotlyarov
Hi I wonder is it possible to use TWSocket in Windows service application? I tried the same code as in udplstn.dpr and can't make it work. I guess it could be related to the fact that windows messages used to signal socket events and it may not work in service. Am I right? -- To unsubscribe or cha

Re: [twsocket] Using TWSocket

2008-08-15 Thread Francois PIETTE
author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: "Hein du Plessis" <[EMAIL PROTECTED]> To: "'ICS support mailing'" Sent: Friday, August 15, 2008 5:06 PM Subject: Re: [twsocket] Using TWSocket > Fra

Re: [twsocket] Using TWSocket

2008-08-15 Thread Hein du Plessis
PROTECTED] On Behalf Of Francois PIETTE Sent: 15 August 2008 16:20 To: ICS support mailing Subject: Re: [twsocket] Using TWSocket > Size: Word; > p:= @Size; > WSocket.Send(Size,2); // THIS IS THE PROBLEM. IT WORKS IF I NOW USE P > as Send takes a pointer as first parameter. You ar

Re: [twsocket] Using TWSocket

2008-08-15 Thread Francois PIETTE
et Component Suite (ICS) http://www.overbyte.be - Original Message - From: "Hein du Plessis" <[EMAIL PROTECTED]> To: "'ICS support mailing'" Sent: Friday, August 15, 2008 3:08 PM Subject: Re: [twsocket] Using TWSocket > Hi There > > Here is

Re: [twsocket] Using TWSocket

2008-08-15 Thread Hein du Plessis
Hi, Yes in the mean time I've adjusted the code, please see previous email. Regards, Hein -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Francois PIETTE Sent: 15 August 2008 14:09 To: ICS support mailing Subject: Re: [twsocket] Using TWSocket &

Re: [twsocket] Using TWSocket

2008-08-15 Thread Hein du Plessis
E P as the parameter. WSocket.SendStr(Msg); XMLData.Free; SizeData.Free; end; Just change -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Francois PIETTE Sent: 15 August 2008 12:23 To: ICS support mailing Subject: Re: [twsocket] Using TWSocket > T

Re: [twsocket] Using TWSocket

2008-08-15 Thread Francois PIETTE
>> The error I received was "There is no overloaded version of "Send" that >> can >> be called with these arguments. >> >> This is when I try to send a variable of type word. The @ prefix did not >> work either. >> WSocket.BufSize:= 2; >> p:= @Size; >> WSocket.Send(p); TWSocket.Send require tw

Re: [twsocket] Using TWSocket

2008-08-15 Thread Angus Robertson - Magenta Systems Ltd
> Would be REALLY interesting to see the offending line ! He gave it in an earlier message, only one parameter so clearly an error, and not pointing to any data either but the size, and corrupting the main buffer: WSocket.BufSize:= 2; p:= @Size; WSocket.Send(p); Angus -- To unsubscribe

Re: [twsocket] Using TWSocket

2008-08-15 Thread Francois PIETTE
> The error I received was "There is no overloaded version of "Send" that > can > be called with these arguments. > > This is when I try to send a variable of type word. The @ prefix did not > work either. Would be REALLY interesting to see the offending line ! > I'm using Delphi 2007 Version 11

Re: [twsocket] Using TWSocket

2008-08-15 Thread Hein du Plessis
further updates available. Regards, Hein -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Francois PIETTE Sent: 15 August 2008 11:43 To: ICS support mailing Subject: Re: [twsocket] Using TWSocket > I declared p as TWSocketData, assigned my data to it an

Re: [twsocket] Using TWSocket

2008-08-15 Thread Francois PIETTE
> I declared p as TWSocketData, assigned my data to it and Send sends it > perfectly! Strange that I cant use my data straight in the send method (I > get the type mismatch error). Please post your code snippet here, and the exact error message. Which Delphi version are you using ? Are you sure yo

Re: [twsocket] Using TWSocket

2008-08-15 Thread Hein du Plessis
] On Behalf Of Francois PIETTE Sent: 15 August 2008 09:03 To: ICS support mailing Subject: Re: [twsocket] Using TWSocket >I have tried to ctrl+click to find the delcaration, but it would not. Have you tried CTRL+SHFT+F (Find in files) ? This always work ! TWSocketData is defined in WSockBuf.

Re: [twsocket] Using TWSocket

2008-08-15 Thread Francois PIETTE
.be - Original Message - From: "Hein du Plessis" <[EMAIL PROTECTED]> To: "'ICS support mailing'" Sent: Friday, August 15, 2008 8:08 AM Subject: Re: [twsocket] Using TWSocket >I have tried to ctrl+click to find the delcaration, but it would not. >

Re: [twsocket] Using TWSocket

2008-08-14 Thread Hein du Plessis
mailing Subject: Re: [twsocket] Using TWSocket >functionSend(const Data : TWSocketData; Len : Integer) : Integer; > overload; virtual; > > What is TWSocketData ?? In Delphi, your CTRL+Click on the symbol to find the definition. Find in files also work nice. -- [EMAIL PROTECTED

Re: [twsocket] Using TWSocket

2008-08-14 Thread Francois PIETTE
ware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: "Hein du Plessis" <[EMAIL PROTECTED]> To: "'ICS support mailing'" Sent: Thursday, August 14, 2008 6:38 PM Subject: Re: [tws

Re: [twsocket] Using TWSocket

2008-08-14 Thread Hein du Plessis
:08 To: ICS support mailing Subject: Re: [twsocket] Using TWSocket Then you can either use .send with a memory pointer or load the entire xml into a string - Original Message - From: "Hein du Plessis" <[EMAIL PROTECTED]> To: "'ICS support mailing'" Sen

Re: [twsocket] Using TWSocket

2008-08-14 Thread Hein du Plessis
L message as a string in sendstr as you've said. Thanks ahead Hein -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of brian Sent: 14 August 2008 18:08 To: ICS support mailing Subject: Re: [twsocket] Using TWSocket Then you can either use .send with a memo

Re: [twsocket] Using TWSocket

2008-08-14 Thread brian
Then you can either use .send with a memory pointer or load the entire xml into a string - Original Message - From: "Hein du Plessis" <[EMAIL PROTECTED]> To: "'ICS support mailing'" Sent: Thursday, August 14, 2008 5:44 PM Subject: Re: [twsoc

Re: [twsocket] Using TWSocket

2008-08-14 Thread Hein du Plessis
17:29 To: ICS support mailing Subject: Re: [twsocket] Using TWSocket you can use SendStr to send a simple text - Original Message - From: "Hein du Plessis" <[EMAIL PROTECTED]> To: Sent: Thursday, August 14, 2008 4:59 PM Subject: [twsocket] Using TWSocket > Hi All >

Re: [twsocket] Using TWSocket

2008-08-14 Thread brian
you can use SendStr to send a simple text - Original Message - From: "Hein du Plessis" <[EMAIL PROTECTED]> To: Sent: Thursday, August 14, 2008 4:59 PM Subject: [twsocket] Using TWSocket > Hi All > > I'm trying to write a simple TCP/IP app but I'm n

[twsocket] Using TWSocket

2008-08-14 Thread Hein du Plessis
Hi All I'm trying to write a simple TCP/IP app but I'm not sure how to actually send data. The Send Method of ICS v6 requires a data type TWSocketData, yet the documentation states it needs a pointer. On the ICS page there is mention of a sample app, Client5, that would probably solve my proble