Re: [twsocket] Skype like application

2012-12-22 Thread brian -
Because your question/topic is much broader than what is usually discussed in these simple mailing lists, mostly used for discussion/issues related to ICS itself rather than asking for extensive help in making an application. At Stack however you'll reach a much larger audience who often post code

Re: [twsocket] Skype like application

2012-12-22 Thread brian -
You are best off asking at http://stackoverflow.com/ instead. On Sat, Dec 22, 2012 at 1:49 PM, Paul wrote: > Hi all, > > I want to make an application to that can receive streaming camera images > using udp hole punching. > > I found this link the net, but I have no clue of how to start with it.

Re: [twsocket] THttpCli -> How to know what URL is requested?

2012-12-21 Thread brian -
Maybe skip grabbing the cookies when request code result is 302 (redirect etc) On Fri, Dec 21, 2012 at 1:53 PM, brian - wrote: > I think when OnLocationChange triggers, Location already has the new URL. > > > On Fri, Dec 21, 2012 at 5:06 AM, Albert Wiersch > wrote: > >

Re: [twsocket] THttpCli -> How to know what URL is requested?

2012-12-21 Thread brian -
I think when OnLocationChange triggers, Location already has the new URL. On Fri, Dec 21, 2012 at 5:06 AM, Albert Wiersch wrote: > > > -Original Message- > > From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] > On > > Behalf Of brian - &

Re: [twsocket] THttpCli -> How to know what URL is requested?

2012-12-20 Thread brian -
*for Google.com -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

Re: [twsocket] THttpCli -> How to know what URL is requested?

2012-12-20 Thread brian -
t 10:21 PM, Albert Wiersch wrote: > > > -Original Message- > > From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] > On > > Behalf Of brian - > > > > You can use the OnLocationChange event to know when the URL changed. > > That seems to let me kn

Re: [twsocket] THttpCli -> How to know what URL is requested?

2012-12-20 Thread brian -
You can use the OnLocationChange event to know when the URL changed. On Thu, Dec 20, 2012 at 4:10 PM, Albert Wiersch wrote: > > How can I know what URL was last requested? > > The "URL" property seems to always be the original URL, so this doesn't > work > in the case of a redirection. > The "Loc

[twsocket] Modify header before send

2012-12-13 Thread brian -
Hi, posted this a while ago, Feb 21st, 2011, and it had no response. Thought I'd bring it up again, as maybe I'm missing something and this is possible some other easier way? (though it doesn't seem like from looking at the code, there's nothing to allow custom headers besides the triggered event)

Re: [twsocket] Know the method used inside OnRequestDone?

2012-12-12 Thread brian -
RqType: THttpRequest; this holds the request type, such as get, post, put, head etc. On Wed, Dec 12, 2012 at 3:12 PM, Bruno Mannina wrote: > Dear ICS User, > > Is exist a way to know inside the OnRequestDone if the command done was a > POST or a GET ? > > Thanks, > Bruno > -- > To unsubscribe o

Re: [twsocket] exception after THttpCli.ReqDone causes double triggerof RequestDone

2012-12-10 Thread brian -
I see. Thanks for the explanation and the workaround :) On Mon, Dec 10, 2012 at 7:17 AM, Arno Garrels wrote: > brian - wrote: > > After RequestDone with THttpCli, if there is an -unhandled- exception > > before the code is out of ReqDone stack, RequestDone is trig

Re: [twsocket] deflate for OverbyteIcsHttpCCodZLib

2012-12-10 Thread brian -
Yes, including it in the project source is enough, but maybe this should be clearly noted somewhere for other devs, as by default you'd think just setting the Options should be enough. On Mon, Dec 10, 2012 at 7:48 PM, Maurizio Lotauro wrote: > Scrive brian - : > > > This se

[twsocket] exception after THttpCli.ReqDone causes double trigger of RequestDone

2012-12-09 Thread brian -
Hi, been experiencing something kinda odd, not sure if this is on purpose or a bug somewhere: After RequestDone with THttpCli, if there is an -unhandled- exception before the code is out of ReqDone stack, RequestDone is triggered again. Try the following code: httpcli1.RcvdStream := tmemorystre

Re: [twsocket] deflate for OverbyteIcsHttpCCodZLib

2012-12-09 Thread brian -
This seems to be finally fixed in the latest Daily/SVN, the data received is transparently uncompressed etc. HOWEVER, there is a small issue, which isn't readily apparent unless you check received data size etc: If you don't include OverbyteIcsHttpCCodZLib anywhere in your app, it won't be used a

Re: [twsocket] deflate for OverbyteIcsHttpCCodZLib

2012-10-08 Thread brian -
Hmm it may be an issue with the site then; the XML is part of an API used by some applications, I haven't see others have an issue with this however. >From my testing: - Using only gzip: the XML is not encoded but ICS think it is, therefore trying to decode non-encoded data, resulting in an error

Re: [twsocket] deflate for OverbyteIcsHttpCCodZLib

2012-10-07 Thread brian -
Tested with this website http://myanimelist.net/malappinfo.php If I enable content encoding, then the data received isn't compressed unless I add deflate. On Sun, Oct 7, 2012 at 8:07 PM, Angus Robertson - Magenta Systems Ltd < an...@magsys.co.uk> wrote: > > Please add the following modificatio

[twsocket] deflate for OverbyteIcsHttpCCodZLib

2012-10-04 Thread brian -
Please add the following modification to OverbyteIcsHttpCCodZLib, I was sad to see it's not yet included in the last V8 :< ( I reported this long ago ) class function THttpCCodzlib.GetCoding: String; begin Result := 'gzip, deflate'; end; The original code only has gzip, which fails to properl

Re: [twsocket] How to install Firemonkey beta pack for XE2

2012-04-12 Thread brian -
At first yes, then I tried to uninstall the old VCL and delete all the older files first, then proceeded with the fmx beta. Used the -nocache option as well. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Vis

Re: [twsocket] How to install Firemonkey beta pack for XE2

2012-04-12 Thread brian -
Followed the notes, now I get a different error when trying to install any of the 3 design-time packages: http://img21.imageshack.us/img21/8727/201204120943.png -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket

[twsocket] How to install Firemonkey beta pack for XE2

2012-04-09 Thread brian -
Are there any special steps to follow for installing the beta ICS package (from svn) for Firemonkey? Tried to install it separately, and it gives an error "The procedure entry point @Overbyteicslibrary@initialization$qqrv could not be located in the dynamic link library" OverbyteIcsDXe2Run.bpl ht

Re: [twsocket] Should next ICS version support anything before Delphi XE ?

2012-04-08 Thread brian -
Ive had almost all versions from 1 to XE2, except 6 and those .net (8?). Ported all my apps to XE2 and not looking back. Mostly looking forward to Firemonkey support. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/tws

Re: [twsocket] Help with stalling ftp client

2012-01-31 Thread Brian Culverwell
before each STOR On Wed, Feb 1, 2012 at 6:27 AM, Info2004 wrote: > On 31/01/2012 19:05, Brian Culverwell wrote: > >> probably your backend ftp server has been changed to 'binary' type - and >> when receiving your request to STOR the .csv file - it is issuing a typ

Re: [twsocket] Help with stalling ftp client

2012-01-31 Thread Brian Culverwell
probably your backend ftp server has been changed to 'binary' type - and when receiving your request to STOR the .csv file - it is issuing a type A to change the mode to ASCII You could force the Type A before issuing your STOR. Regards Brian On Wed, Feb 1, 2012 at 2:43 AM, Info2

Re: [twsocket] OnDataAvailable

2012-01-31 Thread Brian Culverwell
extra characters in the actual transmitted message - so the counter at the beginning of the data did not match the actual data - and therefore there was still stuff to receive (still in the buffer) so it hung the client up. Regards Brian On Wed, Feb 1, 2012 at 4:20 AM, wrote: > > Hi, > i

Re: [twsocket] SITE EXEC issue

2012-01-30 Thread Brian Culverwell
Thanks Angus and Francois - will try both your recommendations! Brian On Tue, Jan 31, 2012 at 6:42 AM, François Piette wrote: > >I have a client ftp component written using ICS and a server component > also > using ICS - everything > >was grand up to about 2 weeks ago, when

[twsocket] SITE EXEC issue

2012-01-30 Thread Brian Culverwell
-virus or something but it is just the SITE EXEC that does not work - everything else is fine. Regards Brian -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

[twsocket] 64 bit SSL

2011-10-08 Thread brian -
Hi, I'm trying to convert a project to 64 bit with XE2, and encounter this issue with SSL, I get an exception: "exception class EIcsLibeayException with message Unable to load LIBEAY32.DLL, %1 is not a valid win32 application Is there any workaround for this? -- To unsubscribe or change your sett

Re: [twsocket] TTwitter component

2011-03-04 Thread brian -
v0.33 up with xAuth/SSL support. On Mon, Feb 28, 2011 at 4:02 PM, brian - wrote: > http://dev.twitter.com/pages/auth_overview > > <http://dev.twitter.com/pages/auth_overview>There's xAuth to skip the PIN > step, but requires the twitter user/pass. > Also I made a met

Re: [twsocket] TTwitter component

2011-02-28 Thread brian -
http://dev.twitter.com/pages/auth_overview There's xAuth to skip the PIN step, but requires the twitter user/pass. Also I made a method in my lib to do almost like xAuth, simulating a browser login, catching the cookies and posting the form etc to retrie

Re: [twsocket] TTwitter component

2011-02-28 Thread brian -
There's already a method through httpcli, but PIN approach should always be encouraged. v0.32 up On Mon, Feb 28, 2011 at 10:32 AM, Anton S. wrote: > TWebbrowser? ShellExec?? Chromium?? Why don't you use ICS HTTPCli for > authorizing? You may even display an original page with powerful ThtmlView

Re: [twsocket] TTwitter component

2011-02-27 Thread brian -
elease and share source code, so I never looked much into open source licenses until just now. Would appreciate some insight about it :) On Mon, Feb 28, 2011 at 12:08 AM, RTT wrote: > On 27-02-2011 19:29, brian - wrote: > >> I don't really like the idea of embedding the TWebBrowse

Re: [twsocket] TTwitter component

2011-02-27 Thread brian -
> On 27-02-2011 18:39, brian - wrote: > >> I like it tbh, even with the >> annoyance of havign to login and retrieve the pass for the user, it's only >> required once. >> > > As I said, Twitter don't require the PIN, so you can ignore that step. User > o

Re: [twsocket] TTwitter component

2011-02-27 Thread brian -
, and add XAuth support instead. On Sun, Feb 27, 2011 at 7:25 PM, RTT wrote: > On 27-02-2011 17:18, brian - wrote: > >> use an alternate method to wont require the user to visit the twitter site >> to get the PIN code, the app will simulate a browser login, catch the >> c

Re: [twsocket] TTwitter component

2011-02-27 Thread brian -
Ahh thanks, should have looked there first :) replaced it now. Download link should work now. On Sun, Feb 27, 2011 at 6:45 PM, RTT wrote: > > You can remove the b64ASM.pas dependency using the ICS equivalent > > //b64asm.Base64Encode(HMAC_SHA1_EX(SignBase,signkey)); > OverbyteIcsMimeUtils.Bas

Re: [twsocket] TTwitter component

2011-02-27 Thread brian -
> On 27-02-2011 16:01, brian - wrote: > >> Simply added deflate to the result. Without that, I don't get any data >> back. >> > Juts tested your component here, without that modification, and works just > fine. What exactly happen in your case. What data you don

Re: [twsocket] TTwitter component

2011-02-27 Thread brian -
Don't see an attached message in your reply :( but anyway, lurking through the archives some time ago I found someone submitted a modification to apparently fix this problem, but that still didnt work for me. Changing this in OverbyteIcsHttpCCodZLib did the trick though: 55: Result := 'gzip, d

Re: [twsocket] TTwitter component

2011-02-27 Thread brian -
Updated the library and uploaded to my site to reflect this modification. Sadly though, OverbyteIcsHttpCCodZLib is still problematic, I have to keep using the modified version to make it work. On Sun, Feb 27, 2011 at 7:56 AM, Francois PIETTE wrote: > I will modify the code to use a variable for

Re: [twsocket] TTwitter component

2011-02-26 Thread brian -
ave the latest distribution available from your website, unless I've missed a link to a beta or newer version :) On Sun, Feb 27, 2011 at 7:04 AM, Francois PIETTE wrote: > Hello Brian, > > > Ok, here's my twitter implementation : >> http://eden.fm/2011/02/27/twitter-library

Re: [twsocket] TTwitter component

2011-02-26 Thread brian -
Ok, here's my twitter implementation : http://eden.fm/2011/02/27/twitter-library-for-delphi/ On Tue, Feb 22, 2011 at 12:13 PM, Francois PIETTE wrote: > You should really consider making in freeware/opensource. >>> You'll gain something: other people will find bugs and make enhancements. >>> You

Re: [twsocket] Why ICS prefers non-blocking sockets?

2011-02-22 Thread brian -
I much prefer non-blocking. While receiving data from a httpcli f.e or over a slow connection etc, my app keeps running while waiting for data. without having to complicate it all with extra threads for everything. On Tue, Feb 22, 2011 at 2:26 PM, Zvone wrote: > When I looked at Indy and Ararat

Re: [twsocket] TTwitter component

2011-02-21 Thread brian -
I'll post the code in google code along with that tiny client :) it's nothing major and my code is probably embarrassingly messy and primitive though, I'm sure it can be improved a lot ^^ Just a small clarification though, it's not a component, it's only a unit with an object I called TTwitterCli,

[twsocket] THttpCli modification request, and gzip fix

2011-02-21 Thread brian -
Hi, I made a small modification to OverbyteIcsHttpProt and OverbyteIcsHttpCCodZLib, maybe it can be sorted for the next version. OverbyteIcsHttpProt : I made a small change to modify the headers before sending a request. I know there is an event for it, OnBeforeHeaderSend, however that's not qui

Re: [twsocket] TTwitter component

2011-02-21 Thread brian -
I'm pretty sure I mailed mine a few years ago, but might as well send another :) I just do see more and more people lately using Indy by default since it started coming packed with Delphi, and they either don't know about ICS or prefer the simplicity of Indy. I prefer ICS for the control it gives m

Re: [twsocket] TTwitter component

2011-02-21 Thread brian -
Always been a bit skeptic about open source, how do you make money from that :) On Sun, Feb 20, 2011 at 3:23 PM, Francois PIETTE wrote: > closed source for now since im using it for another large project, and the >> libraries are not complete, it's mostly just the steps to auth with >> twitter >>

Re: [twsocket] TTwitter component

2011-02-20 Thread brian -
I'm using it also for a plugin for this application: http://malupdater.com/ <http://malupdater.com/>All these posts are being sent by ICS ^^ http://twitter.com/#!/search?q=%23MalUpdater On Sun, Feb 20, 2011 at 12:45 PM, brian - wrote: > closed source for now since im using it for

Re: [twsocket] TTwitter component

2011-02-20 Thread brian -
closed source for now since im using it for another large project, and the libraries are not complete, it's mostly just the steps to auth with twitter and send the messages. I saw someone else made an oauth for delphi already, but didnt like it, too much use of classes for any little things and ove

Re: [twsocket] TTwitter component

2011-02-19 Thread brian -
I made my own twitter and oauth libraries from scratch, full unicode support, with ICS :) Never liked Indy. http://eden.fm/twitmee/ On Fri, Feb 18, 2011 at 3:57 PM, Francois PIETTE wrote: > OK, thanks for the infos. > > -- > francois.pie...@overbyte.be > http://www.overbyte.be > > - Original

Re: [twsocket] Modifying headers before send in httpcli fails

2011-02-17 Thread brian -
I got this working, httpcli is just working as expect, was nothing wrong with it. I will keep that extra variable for the headers anyway, it's a lot more convenient than the notify event. On Sun, Feb 13, 2011 at 3:54 AM, brian - wrote: > only 1 line > > SHeader := 'A

Re: [twsocket] Modifying headers before send in httpcli fails

2011-02-12 Thread brian -
#x27;", oauth_signature_method="HMAC-SHA1", oauth_version="1.0", oauth_signature="' + URLEncode2(sign) +'"'; On Sun, Feb 13, 2011 at 3:35 AM, RTT wrote: > On 12-02-2011 22:31, brian - wrote: > >> Authorization: OAuth oauth_callback=&

Re: [twsocket] Modifying headers before send in httpcli fails

2011-02-12 Thread brian -
Oh yeah, dunno why I thought that was read only >< same effect anyway, the output headers are the same and still OAuth fails. Maybe something to do with the way httpcli sends the headers? On Sat, Feb 12, 2011 at 11:42 PM, RTT wrote: > On 12-02-2011 22:31, brian - wrote: > >>

[twsocket] Modifying headers before send in httpcli fails

2011-02-12 Thread brian -
Hi, I've been working on Twitter's OAuth implementation, for which I'm using THttpCli. There are various ways to do this, one of which is adding some Auth data in the http headers and not including the parameters int he GET call. However, there's no option in httpcli to manually modify the headers

Re: [twsocket] OT RE: EAccessViolations when Posting Data to aHTTPServer

2009-02-04 Thread brian
eport them. -- From: "Hoby Smith" Sent: Wednesday, February 04, 2009 15:48 To: "'ICS support mailing'" Subject: [twsocket] OT RE: EAccessViolations when Posting Data to aHTTPServer > A little OT... :) > >> Br

Re: [twsocket] EAccessViolations when Posting Data to a HTTPServer

2009-02-04 Thread brian
Hi, do you know about madExcept? That helps a lot in catching the source of exceptions. -- From: "Keith Willis" Sent: Wednesday, February 04, 2009 14:37 To: "'ICS support mailing'" Subject: Re: [twsocket] EAccessViolations when Posting Data to a H

Re: [twsocket] best way to reset HttpCli

2008-10-18 Thread brian
>I think so, > > If you call Abort, OnRequestdone will be triggered. > You can set a flag when you call abort, and then you can take action in > OnRequestdone. > You problably have to free some streams anyway, which are usually freed in > OnRequestdone. > > Paul >

Re: [twsocket] best way to reset HttpCli

2008-10-18 Thread brian
o, > > If you call Abort, OnRequestdone will be triggered. > You can set a flag when you call abort, and then you can take action in > OnRequestdone. > You problably have to free some streams anyway, which are usually freed in > OnRequestdone. > > Paul > > > > -

Re: [twsocket] best way to reset HttpCli

2008-10-18 Thread brian
ll in ONRequestdone. It has complex reasons yet if you > really want to know, breakpoint the original setready. > > Regards, > > SZ > > On Sat, Oct 18, 2008 at 3:16 PM, brian <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> I am using a httpcli created on run

[twsocket] best way to reset HttpCli

2008-10-18 Thread brian
Hi, I am using a httpcli created on run-time. I first connect to a website, and after DocEnd I call another procedure that changes the event procedures and connects to a different website. On the 2nd call I get an Exception "HTTP component is busy", so I do this before trying the 2nd call tr

Re: [twsocket] UDP Address

2008-10-16 Thread brian
x27;Error 10057 in function GetPeerName Socket is not connected' > > Im assuming this is because I didnt actually run sock.Connect with the > address I received > > that packet from? Im only running sock.connect once to avoid changing > client port > > On Fri, Oct

Re: [twsocket] UDP Address

2008-10-16 Thread brian
Have you checked PeerAddr? - Original Message - From: "Xealot" <[EMAIL PROTECTED]> To: Sent: Friday, October 17, 2008 04:47 Subject: [twsocket] UDP Address > Hello! > > I would like to know if its possible to get the address that a UDP packet > comes from. > > I am making an applicatio

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 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 not sure how to actually > send data. T

Re: [twsocket] Converting memorystream to string?

2008-08-13 Thread brian
[twsocket] Converting memorystream to string? > Brian, > > At 10:49 13/08/2008, brian wrote: >>procedure LoginSocketDocEnd(Sender: TObject); > > (snip) > > Thanks much for the code. > > -- > To unsubscribe or change your settings for TWSocket mailing list >

[twsocket] Converting memorystream to string?

2008-08-13 Thread brian
procedure LoginSocketDocEnd(Sender: TObject); var p: PChar; s: string; begin p := TMemoryStream(LoginSocket.RcvdStream).Memory; s:= Copy(StrPas(p), 1, LoginSocket.RcvdStream.Size); LoginSocket.RcvdStream.Destroy; LoginSocket.RcvdStream := nil; or if you need stringlists: procedure Service

Re: [twsocket] UDP question...

2008-07-21 Thread brian
I think with UDP you get can get packets in different order, not get them at all, get them repeated.. but as opposed to TCP you get entire packets, if you send 100 bytes at once, you get 100 at once. Someone correct me if I'm wrong.. > > Hi, > > This is the first time I am writing a UDP server

Re: [twsocket] How to know if a port is being used

2007-09-15 Thread brian
Use this function and add the following units: wsports and snmp function IsPortFree(Prt: Integer): Boolean; var p: TWSPorts; begin p := TWSPorts.Create; p.Refresh; if p.PortInUse(Prt) then Result:= False else Result:= True; p.Free; end; // // © 2000 Epsylon Software Development // // WSP

Re: [twsocket] Delphi2007,UDP, 2x packets

2007-09-12 Thread brian
Yeah, I've worked a lot with TCP and it was really no problem requesting a next packet after each, it was very fast. UDP offers some other valuable features though. How do you manage missed/double/wrong ordered packets? I thought of making a buffer to store a certain amount of packets.. say... m

Re: [twsocket] Delphi2007,UDP, 2x packets

2007-09-11 Thread brian
Thanks, that's really helpful! (only missed the pointer to the buffer in that code) it seems acknowledging every packet with udp before sending more turns out much slower than tcp -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/lis

Re: [twsocket] Delphi2007,UDP, 2x packets

2007-09-11 Thread brian
Hi, I checked it out, that's quite confusing heh. I'd appreciate it if you could show me a simple code for a UDP wsocket to Listen; and send data back to the host it received from. Thanks! -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/ma

Re: [twsocket] Delphi2007,UDP, 2x packets

2007-09-09 Thread brian
I think I figured out the problem. The first socket is sending out faster than the receiver is receiving and flushing the buffer. Another question, if I may; Can I send data back with the same udp socket that I set to listen? -- To unsubscribe or change your settings for TWSocket mailing list

Re: [twsocket] HttpCli.Get problem

2007-09-09 Thread brian
Use the DocEnd event -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

Re: [twsocket] Delphi2007,UDP, 2x packets

2007-09-09 Thread brian
sorry, actually it's this procedure TForm1.WSocket2DataAvailable(Sender: TObject; ErrCode: Word); Var a: string; begin a:= WSocket2.ReceiveStr; // if length(a) = 0 then Exit; Inc(rec,1); caption:= 'Received packets = '+inttostr(rec); memo1.lines.add('Data: '+a); end; -- To unsubscribe or c

Re: [twsocket] Delphi2007,UDP, 2x packets

2007-09-09 Thread brian
This is the simple test code to receive the data procedure TForm1.WSocket1DataAvailable(Sender: TObject; ErrCode: Word); begin Inc(rec,1); caption:= 'Received packets = '+inttostr(rec); memo1.lines.add(WSocket2.ReceiveStr); end; > Are you calling the message pump from one of your event

Re: [twsocket] Delphi2007,UDP, 2x packets

2007-09-08 Thread brian
Yes they are 0 bytes I thought the fragmented packets didn't happen with UDP though? that boundaries were respected? When I used TCP I made packet delimiters so I could identify when I had a full packet in various pieces, but isn't that different with UDP? Why is the event triggered with empty

[twsocket] Delphi2007,UDP, 2x packets

2007-09-08 Thread brian
Hello, I am using Delphi and ICS again after a few years of not doing much network stuff, and I've begun working on a project involving UDP, so my first steps are doing some testing. I setup a udp socket and send 100 packs with a message and an identified number, and the receiver counts the pa

Re: [twsocket] Sever architecture

2006-08-18 Thread Brian Sheeres
I'm eager now to try ICS. Out of curiosity, is the behavior of the D5 TServerSocket (in non-blocking mode) the same as ICS? I've used the D5 component in the past and have run into some problems that led me to believe it was not serializing properly. Would a TTimer OnTimer event in the main appli

[twsocket] Sever architecture

2006-08-17 Thread Brian Sheeres
This is less of a socket question and more of an implementation question. Imagine a server with many concurrent connections but that only allows one connection at a time to submit a request, access/manipulate data and then send the results back to all other connections. In other words all requests

Re: [twsocket] Twsocketserver

2005-08-15 Thread brian
An example on how I do it: procedure TUser.SocketDataAvailable(Sender: TObject; Error: Word); Var a: Integer; abc,d: string; begin if ToRcv = 0 then // NEW PACKET INCLUDING HEADER begin NBuffer:= NBuffer + NSocket.ReceiveStr; AnalyzePacket; end else begin if NSocket.RcvdCoun

Re: [twsocket] Twsocketserver

2005-08-14 Thread brian
You could use a custom small header on every packet you send, i.e. first 2-4 bytes being the packet size, so when you receive data you add to a buffer and check if it reached the total size of the packet. If it has not, do nothing, if it has, complete the buffer and send the data packet to a pr

Re: [twsocket] FTP as system service: Cannot convert port 'ftp-data'

2005-08-12 Thread brian
Friday, August 12, 2005 19:29 Subject: Re: [twsocket] FTP as system service: Cannot convert port 'ftp-data' > Hello Brian, > > The folder where the file is in a registry key. It is mentioned once a > while in this group. Eventually try the searchable archive. > > ---

Re: [twsocket] FTP as system service: Cannot convert port 'ftp-data'

2005-08-12 Thread brian
ystem you may have (disconnect from the > internet to be safe). > -- > [EMAIL PROTECTED] > http://www.overbyte.be > > - Original Message - > From: "brian" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Friday, August 12, 2005 5:42 PM &

Re: [twsocket] FTP as system service: Cannot convert port 'ftp-data'

2005-08-12 Thread brian
I checked the file, it seems to be ok, and there's no viruses in my system either. Running admin account Where else can I check for what's wrong ? Thanks. # Copyright (c) 1993-1999 Microsoft Corp. # # This file contains port numbers for well-known services defined by IANA # # Format: # # / [a

[twsocket] FTP as system service: Cannot convert port 'ftp-data'

2005-08-11 Thread brian
I'm trying to port the ftp server demo to a system service, however when I connect I get this error in the ftp client: 451: Failed: connect: WSocketResolvePort: Cannot convert port 'ftp-data'. Error #11004 Unable to complete transfer Any idea why it gets that error when running as a system se

Re: [twsocket] found odd error in FtpSrv not listing directorycontentswith amd64

2005-08-05 Thread brian
FTP commands. > The bug is into your client. > Sorry. > > -- > [EMAIL PROTECTED] > http://www.overbyte.be > > > - Original Message - > From: "brian" <[EMAIL PROTECTED]> > To: > Sent: Friday, August 05, 2005 5:48 AM > Subject: [twsocket] found odd e

[twsocket] found odd error in FtpSrv not listing directory contents with amd64

2005-08-04 Thread brian
I recently upgraded my computer to an AMD64 and put my hands on an ftp server I had worked on some time ago, to find out it wasn't sending the ftp client the files list. After some debugging I located the problem here: in FtpSrv.pas, at procedure TFtpServer.BuildDirectory if Params = '' the