[twsocket] UDP SendTo() sends two packets?

2006-05-02 Thread Jack
I have the code to listen on a UDP port when the first button is clicked, and send a packet when the second button is clicked. It works fine except when the second button is clicked, it sends two packets (I captured that with Ethereal.) Is there anything I'm not doing right? -- Best regards, Jack

Re: [twsocket] Requesting an Ephemeral Port

2006-05-02 Thread Widita Nugraha
Actually all I need is just to make windows ignore any tcp/udp traffic at a range of ports (eg : 3 - 4). Does Winsock have any facility to do this? The only solution I thought about right now is disabling TCP/IP on the LAN adapter that connected to Internet(WAN). I receive all the pack

Re: [twsocket] SMTP Client in IntraWeb application

2006-05-02 Thread Francois PIETTE
> No Message pumb? > All other components work correctly, also CleverComponents' clSMTP > component works but I want to use ICS. Does the other component are real event driven components using Windows messages ? I guess not. ICS make use of messages (winsock messages and others). So it doesn't

Re: [twsocket] Requesting an Ephemeral Port

2006-05-02 Thread Arno Garrels
Widita Nugraha wrote: > On 5/2/06, Arno Garrels <[EMAIL PROTECTED]> wrote: >> >> Widita Nugraha wrote: >>> I think LSP is far beyond my knowledge... >>> How about using Winsock's RAW Socket capability? >> >> AFAIK RAW Sockets support writing/changing packets only in >> W2K. >> >> > not supporte

Re: [twsocket] Requesting an Ephemeral Port

2006-05-02 Thread Widita Nugraha
I think the original packets wasn't sent out because my LAN interface in the NAT Server device doesn't have any gateway attached... But I'm not really sure... I'll try to sniff it later... On 5/2/06, Jack <[EMAIL PROTECTED]> wrote: > > Hello Widita, > > To my knowledge, Windows raw sockets let y

Re: [twsocket] Requesting an Ephemeral Port

2006-05-02 Thread Widita Nugraha
On 5/2/06, Arno Garrels <[EMAIL PROTECTED]> wrote: > > Widita Nugraha wrote: > > I think LSP is far beyond my knowledge... > > How about using Winsock's RAW Socket capability? > > AFAIK RAW Sockets support writing/changing packets only in > W2K. > > not supported in Windows XP? -- To unsubscribe o

Re: [twsocket] Requesting an Ephemeral Port

2006-05-02 Thread Fastream Technologies
I wonder if LSP could be used with the Borland platform or is it DDK-specific? Regards, SZ - Original Message - From: "Widita Nugraha" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Tuesday, May 02, 2006 6:31 PM Subject: Re: [twsocket] Requesting an Ephemeral Port >I think LSP

Re: [twsocket] Requesting an Ephemeral Port

2006-05-02 Thread Jack
Hello Widita, To my knowledge, Windows raw sockets let you capture packets and create new packets, but I don't think you can change or drop packets. Are you sure the original packets wasn't sent out? -- Best regards, Jack Tuesday, May 2, 2006, 8:34:30 AM, you wrote: > Right now i can receive a

Re: [twsocket] Requesting an Ephemeral Port

2006-05-02 Thread Arno Garrels
Widita Nugraha wrote: > I think LSP is far beyond my knowledge... > How about using Winsock's RAW Socket capability? AFAIK RAW Sockets support writing/changing packets only in W2K. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > On 5/2/06, Francois Piette <[EMA

Re: [twsocket] Requesting an Ephemeral Port

2006-05-02 Thread Widita Nugraha
Right now i can receive any incoming packets, edit those which need to be translated, and send it to the internet, but when the reply came to my mapped port on the NAT machine, Windows automatically sends a TCP Packet containing RST flag to the replier... On 5/2/06, Fastream Technologies <[EMAI

Re: [twsocket] Requesting an Ephemeral Port

2006-05-02 Thread Widita Nugraha
I think LSP is far beyond my knowledge... How about using Winsock's RAW Socket capability? On 5/2/06, Francois Piette <[EMAIL PROTECTED]> wrote: > > In my opinion, it require a LSP (Layered Service Provider) which is far > beyond WinPCap/ICS capabilities > http://www.microsoft.com/msj/0599/Layered

Re: [twsocket] SMTP Client in IntraWeb application

2006-05-02 Thread Wilfried Mestdagh
Hello George, I dont know those other components. But ICS needs a working message pump. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Tuesday, May 2, 2006, 14:10, George wrote: > No Message pumb? > All other components work correctly, also

Re: [twsocket] Problem with HTTP-server

2006-05-02 Thread Stefan Blankenagel
Problem solved. I called the wrong function starting the HTTP server and so TMyHTTPConnection was not allocated to clientclass. thanks Stefan -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http

Re: [twsocket] Problem with HTTP-server

2006-05-02 Thread Wilfried Mestdagh
Hello Stefan, In most events of Thttpserver you have Sender and Client arguments. Sender is the server, client is the HttpConnection. So probabley you want to do: ClientCnx := Client as TMyHTTPConnection; --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.me

Re: [twsocket] Problem with HTTP-server

2006-05-02 Thread Stefan Blankenagel
> What is the exact exception message. I guess you didn't respect the class > hierarchy. You must derive your class from THTTPConnection as > TMyHTTPConnection does in the demo. You also has to assign you class to > THttpServer.ClientClass. Well the TMyHTTPConnection is derived form THTTPConnecti

Re: [twsocket] SMTP Client in IntraWeb application

2006-05-02 Thread George
No Message pumb? All other components work correctly, also CleverComponents' clSMTP component works but I want to use ICS. Dont you have IntraWeb installed? Its by default installed in the Delphi IDE. Can you please make a test by yourself? Thanks > If no event fire, then probably there is no

Re: [twsocket] Hi there need exampel or help with Threading

2006-05-02 Thread Wilfried Mestdagh
> Cooperative Thanks. It is because of electromagnetic interferences in my keyboard :) --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mail

Re: [twsocket] Problem with HTTP-server

2006-05-02 Thread Francois Piette
> EInvalidCast. Type conversion is not possible. The debugger stops at > following statement: ClientCnx := Sender as TMyHTTPConnection; What is the exact exception message. I guess you didn't respect the class hierarchy. You must derive your class from THTTPConnection as TMyHTTPConnection does i

Re: [twsocket] SMTP Client in IntraWeb application

2006-05-02 Thread Francois Piette
> Why I cant send email using SMTPCli inside IntraWeb app? > The code works fine in a normal Win32 app but inside a > IntraWeb app the OnRequestDone never fires. > > Whats wrong? If no event fire, then probably there is no message pump. btw: What is a "normal Win32 app" for you ? I guess it is a G

Re: [twsocket] Hi there need exampel or help with Threading

2006-05-02 Thread Francois Piette
> ICS components are using corporative multitasking Cooperative >, meaning they do their work in background without using threads. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare

Re: [twsocket] Requesting an Ephemeral Port

2006-05-02 Thread Francois Piette
In my opinion, it require a LSP (Layered Service Provider) which is far beyond WinPCap/ICS capabilities http://www.microsoft.com/msj/0599/LayeredService/LayeredService.aspx -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Compon

[twsocket] SMTP Client in IntraWeb application

2006-05-02 Thread George
Why I cant send email using SMTPCli inside IntraWeb app? The code works fine in a normal Win32 app but inside a IntraWeb app the OnRequestDone never fires. Whats wrong? Thanks -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/t

[twsocket] Problem with HTTP-server

2006-05-02 Thread Stefan Blankenagel
Hi, I am programming a http server with the ics components. I took the example webserver for my software. I want to use templates with tables and there is a function formdatagetrow. I also implemented this into my software but every time if I call the webpage I get an exception EInvalidCast. T

Re: [twsocket] Requesting an Ephemeral Port

2006-05-02 Thread Fastream Technologies
Hello, Is it really possible to build a NAT application with WinPcap/ICS? Doesn't it require a NDIS driver? Any comments? Regards, SubZero - Original Message - From: "Widita Nugraha" <[EMAIL PROTECTED]> To: Sent: Monday, May 01, 2006 8:10 PM Subject: [twsocket] Requesting an Ephemera

Re: [twsocket] Hi there need exampel or help with Threading

2006-05-02 Thread Wilfried Mestdagh
Hello NeiSep, > well i read about it but i don't get can i connect to several servers > without using Threading ? > and also receive stuff for every thingy? ICS components are using corporative multitasking, meaning they do their work in background without using threads. Technically this means th