Re: [twsocket] TWSocket and data packet length

2013-02-21 Thread Dod
Hello,

Packet  fragmentation  is something you may not fully control whenever
you  trick  MTU size on both client and server side as many devices in
between may also fragment your packets.

For example a firewall with different MTU size set on its Ethernet
interfaces.

I regularly have such problem (I work for an French ISP).

regards.

FS Thanks for your help...

FS I found why it didn't work anymore, the device was connected on a 10Mb Hub, 
and at the beginning I made the tests with the device connected on a 100Mb 
switch.
FS This makes a huge difference !
FS This explains why it worked at a time and didn't work for the last days...

FS The real problem is that the device is too sensible to packet fragmentation 
and anyway we cannot assume we can always have the best MTU size !
FS I will try to get the device behavior modified (not sure how many chances I 
have !!)

FS PS: The TCPOptimizer seems an interesting tool !

FS Thanks again !

FS Regards

FS Frédéric SCHENCKEL

FS * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
FS cab technologies
FS za Nord du val de Moder
FS 67350 Niedermodern
FS Tél: + 33 3 88 72 25 01 / Fax: +33 3 88 72 25 02
FS Notre site en Français: www.cab-technologies.fr
FS Adresse support: supp...@cab-technologies.fr
FS * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

FS -Message d'origine-
FS De : twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] De la 
part de P-E
FS Envoyé : mercredi 20 février 2013 22:14
FS À : ICS support mailing
FS Objet : Re: [twsocket] TWSocket and data packet length

FS Hello,

FS In  addition  to François answer, the max packet size is something you may 
change in tcp settings at system level.

FS Usually the packet size (called MTU) has a 1500 byte default size.

FS If  you  try to send a 2500 byte packet then this packet will probably be 
fragmented into 2 packets as you wireshark dump showed.

FS I recommend you to use TCPOptimizer from 
http://www.speedguide.net/downloads.php

FS This tool will show your actual System level TCP settings and MTU size and  
eventually change it. Default should be 1500 but you may increase this size but 
think that this may have some side
FS effects especially if the   machine  also  need  to  communicate  over  
Internet  as  packet fragmentation  may  not  be managed very well (web page 
don't show up,
FS POP3 may not receive full mail...).

FS TCP Optimizer also have a function to test largest packet you can send to 
destination (MTU/Latency tab and then Largest MTU button).

FS You  may  also  manually  do this test by sending non-fragmented pings with 
forced size to detect if your destination can fully receive big
FS packet.

FS example : ping -4 -f -l 1472 192.168.0.1

FS This will do a ping to IP 192.168.0.1 with 1472 packet size (1500 - 16 of  
ethernet  encapsulation)  and  -f  say  no packet fragmentation allowed. 
This basic test should work but you may set
FS bigger packet (try the packet size you need +16).

FS regards.


FS Thanks François for your help !

FS I  will try this tomorrow... Just to be sure I'm not asking in the 
FS wrong  direction,  this already worked with my program a few weeks 
FS ago...  And  now without changing anything (or nothing consciously 
FS at least !) it doesn't work anymore.

FS Attached  just 2 wireshark captures (at the time it worked !), you 
FS can  see the length of the data is 2114 in one capture and 2348 in 
FS the other one. Today I cannot go over 1500 (the rest comes then in 
FS another  chunk) The problem is that the hardware at the other end, 
FS takes this as several answers. Of course this is also a problem on 
FS this  hardware  but  I  cannot change it, and again it has already 
FS worked...

FS Can   the  network  topology  (different  switches  or  hub)  give 
FS different results about this ?

FS Thanks

FS Best regards


FS Frédéric SCHENCKEL

FS * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * cab 
FS technologies za Nord du val de Moder
FS 67350 Niedermodern
FS Tél: + 33 3 88 72 25 01 / Fax: +33 3 88 72 25 02 Notre site en 
FS Français: www.cab-technologies.fr Adresse support: 
FS supp...@cab-technologies.fr
FS * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

FS -Message d'origine-
FS De : twsocket-boun...@elists.org 
FS [mailto:twsocket-boun...@elists.org] De la part de François Piette 
FS Envoyé : mercredi 20 février 2013 17:54 À : 'ICS support mailing'
FS Objet : Re: [twsocket] TWSocket and data packet length

I need to send a data packet in one chunck.
Today the datas are splitted in two chunks, one of 1500 (the MTU 
limit) and
FS another one for the rest.
 I'm not able to go over this 1500 limit. I know it's possible because 
 I
FS have another program how does it like this

FS What you ask is to use Jumbo Frames which is available on some gigabit 
ethernet systems. Jumbo frames are handled by the OS, not Winsock API (TWSocket 
make use of Winsock API of 

Re: [twsocket] TWSocket closing after every transaction with external HTTP server

2012-04-05 Thread Dod
Hello,

How do you now socket has been closed ? have you done some tcpdump
compare between wroking and non-working system ?

May be some users are going out thru a proxy that remove the
keep-alive ?

regards.

r Hello,

r I have a Delphi 6 application that talks to an external device that acts as 
an HTTP server. I am using the ICS TWSocket components for this application. I 
open up a socket to talk to the device
r and handle the necessary header and body crafting to talk to the server. In 
other words, I am not using the ICS HTTP client component but using the lower 
level TWSocket component and handling the
r necessary HTTP handshaking myself.

r The headers I craft and send to the external device have the keep-alive flag 
set to TRUE. On my system, after I send anything to the external device, the 
connection will stay open continuously and
r will not close until approximately 30 seconds of inactivity occurs (30 
seconds where I don't make any requests of the external device as an HTTP 
server). I don't know if the external device closes
r it or if Microsoft Windows does it. But the important point is that normally 
I can do multiple sends and the connection will stay open until I send nothing 
for about 30 seconds. This works fine
r and is what my code expects.

r However, on some of my users systems the socket is closing after every send. 
I do have code that checks for a closed socket and attempts a reconnect to the 
external device if necessary, but does
r not expect to have to do a reconnect with each transaction.

r My questions are:

r Is there a system setting for sockets that might be causing this anomalous 
behavior on some users systems?

r If so, are there Windows API function calls I can use to query the offending 
parameter and then set it to the expected close on 30 seconds of inactivity 
instead of with each transaction?

r If so, can I, or how do I do it in a manner that will not adversely affect 
any other programs running on the users system?

r Thanks,
r Robert
r --
r To unsubscribe or change your settings for TWSocket mailing list
r please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
r Visit our website at http://www.overbyte.be

--
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] TWSocket closing after every transaction withexternal HTTP server

2012-04-05 Thread Dod
Hello,

Which webcam model ? how many users are connected at same time on it ?
is there one or mutiples cameras ?

r Hello Arno,

 Sending the Keep-Alive header line doesn't guarantee a HTTP
 server keeps the connection alive. 

r True but in this case the external device is the same for all users.  It's a 
mobile web cam, same model and same firmware.  That's whey I'm wondering if 
it's an O/S issue.

r Robert.


r --- On Thu, 4/5/12, Arno Garrels arno.garr...@gmx.de wrote:

 From: Arno Garrels arno.garr...@gmx.de
 Subject: Re: [twsocket] TWSocket closing after every transaction 
 withexternal HTTP server
 To: ICS support mailing twsocket@elists.org
 Date: Thursday, April 5, 2012, 8:18 AM
 robertoschler wrote:
 
  I know the socket is closed because the TWSocket
 OnSessionClosed()
  event fires.  There are no proxies because the
 external device is on
  the Intranet (same router and network) as the PC. 
 It's a local peer
  connection.
 
 Sending the Keep-Alive header line doesn't guarantee a HTTP
 server
 keeps the connection alive. Obviously there's some idle
 timeout
 configured at the server side. May be you can issue some
 dummy 
 request in intervalls in order to work around this. However
 some HTTP servers prevent this as well by limiting the
 maximum 
 number of requests per 'session'.
 
 -- 
 Arno    
    
 
 --
 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
 
r --
r To unsubscribe or change your settings for TWSocket mailing list
r please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
r Visit our website at http://www.overbyte.be

--
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] WiFi Access List?

2012-03-31 Thread Dod
Hello,

This  question  is OT, ICS is not concerned about such function but if
you  google  wmi list wifi ssid you'll get tons of sources for doing
it  using  WMI  that is easy way to retrieve such information at a non
API Level.

regards.

BM This has probably already been asked somewhere before but I can't seem 
BM to find it in my archives of this list.

BM Do anyone know of a quick way to grab just visible SSID's and display 
BM them in a listbox? I don't care about the 802.11 type, authentication, 
BM security or anything else. Just the SSID's that are visible at that 
BM point in time.

BM And while I'm at it, I use Delphi 7 on a Windows 7 64 bit machine with 
BM 16gig ram and have no plans at all to use Delphi XE. So count my vote as 
BM keeping full support for Delphi 7. I just don't like the look and feel 
BM of Delphi XE. I own it, but never use it.

--
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] Should next ICS version support anything before DelphiXE ?

2012-03-29 Thread Dod
Hello,

True,  Delphi  7  is  far the best version I used and it's IDE is very
light unlike newest IDE that make me feel like running Eclipse, I mean
slow  to  start,  need  a  1900*1600 screen to work because of so many
panels  and  tools,  this  is why I still do a lot of D7, not counting
about  unicode  convertion  problems,  and components (with no source)
that don't work anymore.


Thursday, March 29, 2012, 11:03:41 PM, you wrote:

CP Please Support Delphi 7 in the next version, this is the best Delphi
CP version, much more stable than any other.

CP I think that XE2 have a lot of bugs yet, Firemonkey is not good the last
CP version have dozen of bugs in IDE, today 64bit application need power
CP machines and much memory.

CP Cláudio
CP Delphi 7 Developer.

CP 2012/3/29 Arno Garrels arno.garr...@gmx.de

 What I read from current feedback so far is that approximately
 50% wish at least support for Delphi 7 to be continued in a
 next version. That number is what I had expected and why I didn't
 recommend to discontinue D7 support, also to Angus and Francois
 before this survey. Though I like the new language features and
 Unicode support in 2010/XE+ *very much*, it's realy worth to consider
 an upgrade to a recent IDE version, for ICS however it is simply too
 early to discontinue D7 support or any other non-Unicode compiler
 without losing users.

 --
 Arno




 --
 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

CP --
CP To unsubscribe or change your settings for TWSocket mailing list
CP please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
CP Visit our website at http://www.overbyte.be

--
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] Should next ICS version support anything before Delphi XE ?

2012-03-28 Thread Dod
Hello,

Still  using  D7  and  jumped to XE2 for new 64 bits devs that request
hudge memory usage.

regards.

--
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] Wiki hacked?

2012-03-25 Thread Dod
Hello,

I would not say hacked but certainely SPAM Robots trying to create
wiki account and write some adverts.

Like on my blog I got many fake comments like very nice blog but
leaving an URL that points to some pills web site or some web site
that want to see its google rank going up.

regards.

AG 
http://wiki.overbyte.be/wiki/index.php?title=Special:RecentChangeslimit=500days=30
AG --
AG To unsubscribe or change your settings for TWSocket mailing list
AG please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
AG Visit our website at http://www.overbyte.be

--
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] Digest authentication via THttpCli?

2012-01-08 Thread Dod
Hello,

This is what MSDN says about it :

The qop-options directive, as specified in [RFC2617] section 3.2.1, is
optional; but it is used for backward compatibility with digest access
authentication,  as  specified in [RFC2069]. The qop-options directive
SHOULD  be  used by all implementations compliant with this version of
the   digest  authentication  mechanism  and  SHOULD  be  enclosed  in
quotation marks.


AG Paul Read wrote:
 THanks for that information I therefore tweaked
 'AuthDigestParseChallenge' so that Info.Qop is set to 'auth' if no Qop
 value is given and now the right MD5 is calculated and the server
 accepts the data.

AG I'd say this is a server-side bug. It obviously understands a RFC 2617 
AG digest however sends an obsolete RFC 2069 WWW-Authenticate response header. 

AG If I'm not totally misreading this sentence:
AG qop-options
AG   This directive is optional, but is made so only for backward
AG   compatibility with RFC 2069 [6];

AG it means that if the qop directive is missing we have to assume RFC 2069
AG which calculates the digest differently. That cURL works is perhaps because
AG it doesn't try to support obsolete RFC 2069?  

--
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] happy independece day ICS

2011-09-26 Thread Dod
Hello,

Fake site !!!

Monday, September 26, 2011, 2:15:24 PM, you wrote:

ML Scrive Simon Lewis si...@fantaziachat.com:

 hey ICS this has been the greatest experience of my life
 http://www.nbcl0.com

ML For AVG this site is dangerous.


ML Bye, Maurizio.


ML 
ML This mail has been sent using Alpikom webmail system
ML http://www.alpikom.it

ML --
ML To unsubscribe or change your settings for TWSocket mailing list
ML please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
ML Visit our website at http://www.overbyte.be

--
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] PCSensor server/ Simple client-server

2011-09-22 Thread Dod
Hello,

One  thing  about SmartSniff (I use it for years), take care to use it
with  WinPCap  as it may miss ingoing or outgoing datas depending your
WinOS version.

Also if you can't connect to IP addr of the device then it may not use
TCP but UDP, this is quite usual with embedded devices.

regards.

TB Ah ha! Thank you Angus and Piotr...

TB Many happy tens of minutes spent playing with the excellent 
TB suggestions.

TB SmartSniffer Wonderful! Fascinating!

TB Telnet... Ah yes, the good old days... I've burned hours with 
TB Telnet before, given my limited grasp of what I'm doing. (Last time 
TB it was with Dallas TINIs... faulty ones, at that!)

TB I haven't tried Overbyte's Telnet... yet. Preferred to start with the 
TB bog standard one, see how I got on with that.

TB 
TB The rest of this rambles a bit... don't feel bad, Gentle Reader, if 
TB you decide to peruse no further!


TB Smartsniffer, if I've understood things aright, shows that the vendor-
TB supplied software talks to the device over 192.168.0.241, port 5200

TB Tried, under telnet,

TB o 192.168.0.241 5200

TB  also

TB o 192.168.0.241 16000

TB  and various variations using the other IP addresses in the config 
TB report. Telnet says Connecting to 192.160.0.241... ... but just 
TB sits there with that on the screen when I enter the first, and comes 
TB back quickly with Could not open connection... with the second.

TB SmartSniffer doesn't see any interaction between 192.168.0.2 and 
TB 192.168.0.241 in either case.

TB Suspending my anti-malware for a few minutes led to interesting 
TB results in SmartSniffer!

TB By the way... yes... I have approached the manufacturer, too! They're 
TB getting back to me.

TB A clue?

TB In the SmartSniffer report on the conversation being held between 
TB the device and my XP PC, the local address and port are 192.168.0.2 / 
TB 1506

TB 192.168.0.2  *IS* the address I'd expect for the PC running 
TB SmartSniffer, and my Telnet attempts. Not sure if I need to do 
TB anything about the 1506? Do I somehow have to tell Telnet to watch 
TB for answers from ..241 to be directed to 1506? Is there a way? 

TB By the way... I do try to remember to shut down the vendor-supplied 
TB software when attempting a connection via Telnet.

TB And thank you, all, for helping with a not-strictly-ICS matter... but 
TB I will use ICS (with Delphi 7, or maybe Lazarus) to write MY software 
TB for monitoring the TEMPerLAN... one day... I hope...  (^_^)

TB Tom

TB http://facebook.com/SheepdogSoftware  TK Boyd's site with
TB freeware and shareware for kids, parents, schools... and others.
TB You don't have to be a Facebook member to access the site.

TB --
TB To unsubscribe or change your settings for TWSocket mailing list
TB please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
TB Visit our website at http://www.overbyte.be

--
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] PCSensor server/ Simple client-server

2011-09-22 Thread Dod
Hello,

As this subject is OT I propose you to continue this on my personnal mail
instead of this mailing list.

regards.

TB Thank you, Dod...

TB I think someone else had told me to use WinPCap under my 
TB SmartSniff... but I had forgotten.

TB Sure enough, added WinPCap (I'm on an XP, SP3 machine), and now I see 
TB something that either wasn't there before, or I was overlooking it.

TB When I use the software supplied with my TEMPerLAN, I now see what I 
TB take to be the outbound transaction, the Command BB 83 from my PC 
TB to the TEMPerLAN. More in a moment. I've always been able to see the 
TB part where the TEMPerLAN sends back the data.

TB I'm not sure how I am supposed to tell which way stuff is flowing 
TB when I look at the SmartSniff screen... other than knowing by common 
TB sense, when, as now, I know what's in the messages.

TB Is my guess at what is going on reasonable?

TB It seems that the software in my PC generates a thing that it sends 
TB to the TEMPerLAN, well, to whatever is at the IP address I've given 
TB it, which, as it happens, is where the TEMPerLAN it.

TB That thing then triggers the TEMPerLAN to do the same, but in 
TB reverse, and sending back to the IP address which came with the 
TB message from the PC.

TB (I'm pretty sure that the TEMPerLAN, for this, is not using UDP. I 
TB even have an idea that I know what UDP is, you'll be glad to know!)

TB A better statement, with proper terms, of what (may) be going on 
TB would be welcomed.

TB SmartSniff has two lines now, as I said.

TB The one that arises from the sending of Command BB 83 from PC to 
TB TEMPerLAN says...

TB Protocol TCP
TB Local addr: That of my PC (192.168.0.2)
TB Local port: 3058
TB Remote addr: That of the TEMPerLAN (192.168.0.241
TB Remote port: 5200

TB The line from the messages back... differs just in the local port 
TB reported...

TB Protocol TCP
TB Local addr: That of my PC (192.168.0.2)
TB Local port: 3057
TB Remote addr: That of the TEMPerLAN (192.168.0.241
TB Remote port: 5200

TB I can see the stuff I would expect when I look in the bottom pane of 
TB the SmartSniff... what a fantastic program!... window.

TB Is there any other info which could help you help me?

TB Thanks again!

TB Tom

TB --
TB To unsubscribe or change your settings for TWSocket mailing list
TB please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
TB Visit our website at http://www.overbyte.be

--
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] Trying POP3 proxy but loosing lines

2011-02-25 Thread Dod
Hello,

For my problem there is no very long lines as mails are well formatted
with standard base64 encoded attachement formatted into 40 chars/line.

FT This is our problem with the web client component--what happpens when a
FT malicous web server returns a header line of 100MB??! We need a maximum line
FT length property.

--
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] Trying POP3 proxy but loosing lines

2011-02-25 Thread Dod
Hello,

FP I assume you have set LineMode to true.

yes

FP No need to loop beause ReceiveStr() will receive the complete line received 
FP so far and if more lines are available, then more OnDataAvailable events 
FP will be triggered.

yes,  I  forgot  that when using line mode the OnDataAvailable is only
triggered when an entire SINGLE line has been received.

So  any  idea  about  what  could  produce  this  problem ? the actual
OnDataAvailable  is  very  simple,  I  receive  then  I  send, I don't
understand what I did wrong that miss some lines on the other side.

if  I add a line counter in OnDataSent to compare between receive/sent
lines,  is  this  event  only triggered each time a full line has been
sent ?

The proxy is used locally on same machine as e-mail client.

regards.

--
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] Trying POP3 proxy but loosing lines

2011-02-25 Thread Dod
Hello,

I  fixed  the  problem  but  I  don't  understand why it did as what I
changed   should   not  have  chaneg  anything,  I  only  removed  the
ReceiveStr()   loop   (as   it  is  useless  with  linemode:=true)  in
OnDataAvailable,  but  why  did  it  fix  the problem as this loop was
basically useless, now I have :

procedure TPOPOut.POPOutDataAvailable(Sender: TObject; ErrCode: Word);
begin
  StringRLine := TPOPOut(sender).ReceiveStr;
  TPOPOut(sender).POPIn.SendStr(StringRLine);
end;

Bad procedure :

procedure TPOPOut.POPOutDataAvailable(Sender: TObject; ErrCode: Word);
begin
  StringRLine := TPOPOut(sender).ReceiveStr;
  while (Length(StringRLine)  0)
  begin
TPOPOut(sender).POPIn.SendStr(StringRLine);
StringRLine := TPOPOut(sender).ReceiveStr;
  end;
end;



FP No need to loop beause ReceiveStr() will receive the complete line received
FP so far and if more lines are available, then more OnDataAvailable events 
FP will be triggered.

--
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] Trying POP3 proxy but loosing lines

2011-02-25 Thread Dod
Hello,

I  think  you got the point ! as I call ReceiveStr() a second time (or
more)  in the loop within same OnDataAvailable I  may retrieve a non
fully received CRLF line of data that I send back to client side
and also brake the next full line.

So dumb I am ... dumb dumb dumb slapping myself ;-)

WM The design is that this method only be called 1 time in OnDataAvailable. So
WM by calling it multiple times you are in an untested situation.

--
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] Trying POP3 proxy but loosing lines

2011-02-24 Thread Dod
Hello,

I am trying to make POP3 proxy/gateway, I am working linemode ON as it
a CRLF lined protocol so its easier.

But  I  noticed  that  not  all lines are sent back to POP3 client, so
e-mail (especially the ones with attachements) get corrupted.

Each  time I go into OnDataAvailable on server-side socket I loop into
ReceiveStr()  and  call  TWSocketClient.SendStr() on client socket for
each line.

Is  there  something  wrong with this scheme do I overload the WinSock
internal  buffer  ? should I use a man-in-the-middle StringList buffer
and  when  OnDataSend  on  client side I loop SendStr un until no more
lines from StringList buffer ?

Here the actual code sample :

procedure TPOPOut.POPOutDataAvailable(Sender: TObject; ErrCode: Word);
// We get data coming from server
begin
  StringRLine := TPOPOut(sender).ReceiveStr; // Lets get the first line
  while (Length(StringRLine)  0)
  begin
// do the filtering part
// ...
// ... not yet implemented
// ...
// and proceed redirection
TPOPOut(sender).POPIn.SendStr(StringRLine); // send it back to e-mail 
client side
StringRLine := TPOPOut(sender).ReceiveStr; // let's get next line
  end;
end;


regards.

--
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] client problem

2010-05-04 Thread Dod
Hello,

Why don't you simply set bMsgOK:=true when OnDataSent event occure and
change  your  loop  into an application.processmessages loop instead a
CliSocket.MessagePump ?

regards.

AD However, in my webapplication things go wrong while the code is straight 
AD forward like the clientdemo. There are only a few things differently: I 
need 
AD a synchronous call. So I have to wait until the ondatasent has finished. On 
AD this event I set a status bit to allow the application to go on. The first 
AD time it works, the second time, it doesn't, the third time it works, etc.

AD I'm using the messagepump of the clientsocket to wait:

AD function TWebModule5.BuildUDDI : string;
AD begin
ADbMsgOk := false;
ADwhile not bMsgOk do begin
AD   CliSocket.MessagePump;
AD   sleep(100);
ADend;
ADresult := Buffer;
AD end;

AD I'm sure I'm doing things wrong. Hints?

AD albert 

AD --
AD To unsubscribe or change your settings for TWSocket mailing list
AD please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
AD Visit our website at http://www.overbyte.be

--
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] ICSV6 package _InToStr unknown procedure

2010-02-25 Thread Dod
Hello,

Yep ;-)

AG Dod wrote:

 Anyway, since you use Delphi 7 why don't you work with ICS v7,
 v7 is better than v6.
 
 Good  question :-) ICS V6 was the last one I used and since I have not
 seen any comparison sheet between v6v7 I never took the time to test
 it. But if you can tell me in a few words what are V7 improvements...

AG It gets all bug-fixes and is the main development target.
AG New components, all v5 demos ported and new added, UTF-8
AG support even with Delphi 7 in TSmtpCli, TMimedec and the 
AG FTP-components.  

AG Is this enough ;)

AG --
AG Arno Garrels
AG --
AG To unsubscribe or change your settings for TWSocket mailing list
AG please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
AG Visit our website at http://www.overbyte.be



--
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] ICSV6 package _InToStr unknown procedure

2010-02-24 Thread Dod
Hi,

I  am  trying to install ICSV6 on D7 but I get error on _IntToStr in
OverbyteICSHttpSrv.pas  (6.08)  source,  is this a simple misspell for
IntToStr  because I cannot find any _IntToStr function anywhere else
?

constructor THttpServer.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
CreateSocket;
{$IFDEF NO_ADV_MT}
FWSocketServer.Name := ClassName + '_SrvSocket' + _IntToStr(WSocketGCount);
{$ELSE}
FWSocketServer.Name := ClassName + '_SrvSocket' + 
_IntToStr(SafeWSocketGCount);
{$ENDIF}
FClientClass   := THttpConnection;
FOptions   := [];



--
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] ICSV6 package _InToStr unknown procedure

2010-02-24 Thread Dod
Hello,

OK, actual link to OverbyteIcsV6.zip contains this bug so any new user
that download ICS cannot install it without fixing it first.

regards.

AG Dod wrote:
 Hi,
 
 I  am  trying to install ICSV6 on D7 but I get error on _IntToStr in
 OverbyteICSHttpSrv.pas  (6.08)  source,  is this a simple misspell for
 IntToStr  because I cannot find any _IntToStr function anywhere else
 ?
 
 constructor THttpServer.Create(AOwner: TComponent);
 begin
inherited Create(AOwner);
CreateSocket;
 {$IFDEF NO_ADV_MT}
FWSocketServer.Name := ClassName + '_SrvSocket' +
 _IntToStr(WSocketGCount); {$ELSE}
FWSocketServer.Name := ClassName + '_SrvSocket' +
 _IntToStr(SafeWSocketGCount); {$ENDIF}
FClientClass   := THttpConnection;
FOptions   := [];

AG This has been fixed November 2009: 
AG http://wiki.overbyte.be/arch/change-log-icsv6.xml
 
AG --
AG Arno Garrels
AG --
AG To unsubscribe or change your settings for TWSocket mailing list
AG please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
AG Visit our website at http://www.overbyte.be



--
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] ICSV6 package _InToStr unknown procedure

2010-02-24 Thread Dod
Hello,

AG Anyway, since you use Delphi 7 why don't you work with ICS v7,
AG v7 is better than v6.

Good  question :-) ICS V6 was the last one I used and since I have not
seen any comparison sheet between v6v7 I never took the time to test
it. But if you can tell me in a few words what are V7 improvements...

regards.

AG Dod wrote:
 
 OK, actual link to OverbyteIcsV6.zip contains this bug so any new user
 that download ICS cannot install it without fixing it first.

AG Just tested, the fix is included. Of course you have to download
AG from the wiki-link:
AG http://wiki.overbyte.be/wiki/index.php/FAQ#How_to_get_ICS 

AG Anyway, since you use Delphi 7 why don't you work with ICS v7,
AG v7 is better than v6.

AG --
AG Arno Garrels

AG --
AG To unsubscribe or change your settings for TWSocket mailing list
AG please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
AG Visit our website at http://www.overbyte.be



--
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] FTP Monitoring software?

2010-02-06 Thread Dod
Hello,

Any basic TCP sniffer like small SmartSniff freeware from NirSoft.

But  if  you  want  to do it to check localhost cnx between server and
client on same machine, then tcpdump from MicroOlap will do it as it
can capture from loopback interface.

regards.

MEM Guys


MEM What software is available that will allow me to monitor the ftp 
commands that are sent and received by my computer.

MEM I need to do some debugging.

MEM Thanks

MEM Mark Moss
MEM USA
MEM --
MEM To unsubscribe or change your settings for TWSocket mailing list
MEM please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
MEM Visit our website at http://www.overbyte.be



--
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] Having a problem with Rad Studio 2010.

2010-02-01 Thread Dod
Hello,

A small word about the wiki page, the changelog XML links for Daily
snapshots cannot open with IE7 (not tested IE8) but works with FF3.5

regards.

AG Ian Tuck wrote:
 I’ve finally made the switch from C++ Builder 6 to Rad Studio 2010,
 and am going through migration heck.

AG What ICS version do you use? Only ICS v7 supports RS 2009+
AG Get latest version from:
AG http://wiki.overbyte.be/wiki/index.php/FAQ#How_to_get_ICS

AG --
AG Arno Garrels
 

AG --
AG To unsubscribe or change your settings for TWSocket mailing list
AG please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
AG Visit our website at http://www.overbyte.be



--
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] Having a problem with Rad Studio 2010.

2010-02-01 Thread Dod
Hello,

OK reloaded, it works (CTRL+F5 rulez).

regards.


AG Dod wrote:
 Hello,
 
 A small word about the wiki page, the changelog XML links for Daily
 snapshots cannot open with IE7 (not tested IE8) but works with FF3.5

AG Thanks, it should be fixed now, provided you are able to convince IE 
AG to reload die .XML file.

AG --
AG Arno Garrels

 
 regards.
 
 Ian Tuck wrote:
 I’ve finally made the switch from C++ Builder 6 to Rad Studio 2010,
 and am going through migration heck.
 
 What ICS version do you use? Only ICS v7 supports RS 2009+
 Get latest version from:
 http://wiki.overbyte.be/wiki/index.php/FAQ#How_to_get_ICS
 
 --
 Arno Garrels
 
 
 --
 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
AG --
AG To unsubscribe or change your settings for TWSocket mailing list
AG please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
AG Visit our website at http://www.overbyte.be



--
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] ICS V5 and V6 installed at the same time ?

2009-09-24 Thread Dod
Hi,

Instead  of running Delphi on vitualized machine you can also start it
from  a Virtualized version you create with ThinApp (from VMWare) that
is  different  from  full  machine  virtualization  as  it  will  only
virtualize  a  specific  application  instaed  of  full machine into a
stand-alone big single EXE file you can start instantly on any machine
without installation, only copy/run EXE file !

So you could create different virtualized Delphi environment.

You  could  also  virtualize  your  own  delphi app so no need to make
installers.

regards.

--
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] [OT] Delphi virus

2009-08-24 Thread Dod
Hi,

I  suppose some of you have been informed about a virus spreading aver
Delphi 3-7 installed machines.

I've been infected myself on my 3 Delphi 7 machines !

The  virus  itself  is  not  dangerous  (glad) and only spread if your
machine  is  installed  with  Delphi  3-7,  then  it  change  code  of
sysconst.pas, rename old .dcu to .bak, recompile it, and put .pas back
to  original,  so  once  infected  your  Delphi  machine each time you
compile  a  new  EXE  then  virus is inside it and once executed on an
other machine it search for possible Delphi 3-7 installation to spread
using same scheme.

Look  like  tons  of  Delphi apps you can download around Internet are
already  infected,  so the virus may exis for some months but has only
been discovered last week.

Virus  do  not  hurt  anything on system, only try to spread on Delphi
installed  machines but for now any up-to-date anti-virus with trigger
an alarm so your customers may be estonished.

regards.

--
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] Using lots of TSmtpCli in a single application

2009-08-17 Thread Dod
Hello Angus,

I  usually  do  it  according to fail code 5.x.x or 4.x.x for 4.x.x I
retry  later,  for 5.x.x I pout them appart to check manually why they
have been rejected.

regards.

 Also  if  a MX refuse you because of some blacklist then remove 
 thoses mails  from the queue and send you a mail alert so you can 
 investigate why destination refused your mail.

ARMSL It's important not to fail an email on a first refusal, due to the wide
ARMSL usage of 'greylisting' where the SMTP server rejects the first email
ARMSL attempt and then allows a second attempt, typically 10 to 15 minutes
ARMSL later.  Sometimes the response mentions greylisting, but some SMTP
ARMSL servers don't even do that.  

ARMSL MAIL FROM: nursery...@englishmotorsports.com
ARMSL 250 OK nursery...@englishmotorsports.com Sender ok 
ARMSL RCPT TO: i...@magsys.co.uk
ARMSL 451 Greylisted, please try again in 600 seconds 

ARMSL Once an email has been sent successfully, the server adds the sender to
ARMSL an internal list so future email is not delayed.  

ARMSL Greylisting is very successful in stopping spam, at least for the moment,
ARMSL it stops 500 to 1,000 spams a day here.  

ARMSL However have a couple of Delphi applications that currently sent email
ARMSL without using a queue or a 15 minute delay, which really need updating to
ARMSL cope with greylisting.

ARMSL Angus

ARMSL --
ARMSL To unsubscribe or change your settings for TWSocket mailing list
ARMSL please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
ARMSL Visit our website at http://www.overbyte.be

--
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] Using lots of TSmtpCli in a single application

2009-08-17 Thread Dod
Hello Angus,

You  are  true,  I  made a mistake talking about multiple threads, I
meant  multiple  components in a single thread with a thread dedicated
to the smtp component's so it is separated from the main GUI thread so
the visual interface (if any) should be always responsive whenever the
smtp thread is working hard.

regards.

 The application I'm working on is 9 years old, has many thousands 
 of man hours spent on it, and whilst it would be nice to have a 
 single TSmtpCli, in order to avoid a massive code rewrite it's much 
 easier for me to have lots of TSnmpCli components, rather than one 
 (you can't see it, but I can of course). 

ARMSL The issue we were discussing was not the use of a single TSmtpCli which
ARMSL is clearly unsuitable for all but the most simple mail servers, but
ARMSL whether you should be using threads with multiple TSmtpCli components (or
ARMSL most other ICS components for that matter).  

ARMSL I have an application that captures data on 400 TWSockets simultaneously,
ARMSL in a single thread.  

ARMSL As was said, two or more threads are beneficial where there are multiple
ARMSL processors available to the application and you can hog the entire 
server,
ARMSL or where you really are handling thousands of simultaneous connections.  

ARMSL Angus

ARMSL --
ARMSL To unsubscribe or change your settings for TWSocket mailing list
ARMSL please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
ARMSL Visit our website at http://www.overbyte.be

--
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] Using lots of TSmtpCli in a single application

2009-08-16 Thread Dod
Hello Pete,

200  mails  per  hour  is really not much, a single thread can do much
more.

But  you  may be slowed by the other side smtp server if it is slow or
timeout.  So  doing  multi-thread  is  a  good  way to maintain a good
average speed.

You  can  create  20  threads with a common queue that each thread can
take mails from, so if a thread is slowed because of slow or timed-out
smtp  server,  then  the other threads continue to empty the queue and
send e-mails to other smtp servers.

In  case  you  send  multiple  mails so same MX domain, then make some
function  that  will  re-arrange  the  queue to move slow or timed-out
domains to the end of the queue so you'll retry them later.

Also  if  a MX refuse you because of some blacklist then remove thoses
mails  from the queue and send you a mail alert so you can investigate
why destination refused your mail.

regards.


PW Hi 

PW I've used ICS components for a while now and had great results. 

PW I have something new to do and wanted some advice before starting a new 
project.

PW Previously my app used a single TSmtpCli and this all worked fine. Now 
however I have to send mail on behalf of lots of accounts and the number of 
TsmtpCli components in use simultaneously, used
PW in a multi threaded application, could be in excess of 100.

PW Assuming that the machine has enough memory and processor power, am I 
likely to run into any problems?

PW I don't evisage the email volumes being massive - say 20 per hour per 
account, meaning something like 200 per hour outgoing per application.

PW My reason for asking is simple - I'm doing something unusual. If it is 
likely to be a problem I can try concentrating all emails through a single 
Tsmtpcli but because of the code base I am
PW working with this will be much harder to do.

PW Any comments welcome. Thanks in advance!





PW _

PW Upgrade to Internet Explorer 8 Optimised for MSN.  

PW http://extras.uk.msn.com/internet-explorer-8/?ocid=T010MSN07A0716U
PW --
PW To unsubscribe or change your settings for TWSocket mailing list
PW please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
PW Visit our website at http://www.overbyte.be



--
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] Async in 1GBit LAN, high CPU?

2009-07-15 Thread Dod
Hello Arno,

1GB  networks  are  very difficult to tune as many hardware behind the
network cards can't handle such high speed, for example hard drives on
client  machines  usually  can't handle full 1Gb speed reception and
will  stay  at average 80-100Mb only this making different bottlenecks
on the machine that could go 100% CPU when it should not.

Also  an  other  thing, if you force 10Mb or 100Mb on one side you may
encouter  some  problem  if other side is set to auto-negotiate as the
other side will always try to re-negotiate to higher speed (and them
produce a lot of garbage due to negotiation).

regards.

AG Francois PIETTE wrote:
 That makes me think we need a throttle at the root (TWSocket).
 
 Would be interesting.

AG Will think about it.

 
 Just switched the roles, installed the mail server on a slow(er) box
 and ran the TSmtpCli application on the fast(er) one. CPU use of the
 TSmtpCli application was max 35% whereas the other way around 60%.
 
 Try setting the network speed to 10 Mbps (you should be able to set
 the speed in the hardware config). 

AG I changed it from Autodetect to 10 MBit/s full duplex. There's now
AG just 0-1% CPU use and the connection became incredible slow, much too 
AG slow, that must have messed up something.

AG --
AG Arno Garrels


 I guess you'll see a dramatic drop
 in CPU usage because your app will be really network bound. If this
 is really the case, the reverse, that is using 1Gbps, will makes your
 app CPU bound and this would confirm my analysis.
 
 --
 francois.pie...@overbyte.be
 The author of the freeware multi-tier middleware MidWare
 The author of the freeware Internet Component Suite (ICS)
 http://www.overbyte.be
AG --
AG To unsubscribe or change your settings for TWSocket mailing list
AG please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
AG Visit our website at http://www.overbyte.be

--
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] SSL intermediate cert problem

2009-05-13 Thread Dod
Hello,

You  can  import  them  using  import  certificate  wizard in Internet
Explorer,  this  wizard also have an EXE version located into %WINDIR%
but I don't remember the name.

regards.


FT Hello,

FT I wonder how would an end user install these files sent from Comodo:

FT Root CA Certificate - AddTrustExternalCARoot.crt
FT Intermediate CA Certificate - UTNAddTrustSGCCA.crt
FT Intermediate CA Certificate - ComodoUTNSGCCA.crt
FT Intermediate CA Certificate - EssentialSSLCA_2.crt
FT Your Free SSL Certificate - services_mypriority_co_uk.crt

FT It is my experience that crt's and pem's are exactly the same yet with
FT different extensions.

FT Please advise.

FT Best Regards,

FT SZ

-- 
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] SSL intermediate cert problem

2009-05-13 Thread Dod
Hello,

You speak about end-user, but do you already installed one yourself ?

regards.

FT Of course I am trying to use ICS THttpServer!

FT Regards,

FT SZ

FT On 5/13/09, Dod do...@sky.fr wrote:
 Hello,

 So if for server, it depend which server software you intend to use.

 Look at this page that show you how to do it with well known servers
 like IIS, Apache, WebSphere...

 http://www.instantssl.com/ssl-certificate-support/cert_installation/ssl-certificate-index.html

 regards.

 FT Hi,

 FT But this is a server certificate! Do you still insist on your advice
 FT after this info?

 FT Regards,

 FT Gorkem Ates

 FT On 5/13/09, Dod do...@sky.fr wrote:
  Hello,
 
  You  can  import  them  using  import  certificate  wizard in Internet
  Explorer,  this  wizard also have an EXE version located into %WINDIR%
  but I don't remember the name.
 
  regards.
 
 
  FT Hello,
 
  FT I wonder how would an end user install these files sent from Comodo:
 
  FT Root CA Certificate - AddTrustExternalCARoot.crt
  FT Intermediate CA Certificate - UTNAddTrustSGCCA.crt
  FT Intermediate CA Certificate - ComodoUTNSGCCA.crt
  FT Intermediate CA Certificate - EssentialSSLCA_2.crt
  FT Your Free SSL Certificate - services_mypriority_co_uk.crt
 
  FT It is my experience that crt's and pem's are exactly the same yet with
  FT different extensions.
 
  FT Please advise.
 
  FT Best Regards,
 
  FT SZ
 

-- 
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] Using a SmartCard with ICS-SSL (was SSL PEM error)

2009-04-24 Thread Dod
Hello,

The goal is to try to do SSL secured by French Doctor's HealthCare
SmartCard.

Some  medical  HTTPS,  POP-SSL, SSL-SMTP servers require the SmartCard
and check if certificate is valid.

For example, FireFix using the PKCS11 module can do the HTTPS
connection.

I also Know s local POP-SSL proxy that add a string authentication
using the SmartCard.

There  is  also a public healthcare smartcard that all french people
have but I don't know if it inlcude any certificate inside.

regards.

FT Does this work has anything to do with OpenSSL hardware accelerators
FT support? If so, is it tested by somebody who actually has a card?


-- 
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] Using a SmartCard with ICS-SSL (was SSL PEM error)

2009-04-24 Thread Dod
Hello,

But I forgot to answer your question : I own a SmartCard reader and a
valid SmartCard for testing.

Strong  authentication  using  Key engine of a smartcard using ICS-SSL
(OpenSSL  and  PKCS11  engine) would be an interesting extended fature
for highly secured client/server apps.

regards.

FT Does this work has anything to do with OpenSSL hardware accelerators
FT support? If so, is it tested by somebody who actually has a card?

FT Best Regards,


-- 
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] Using a SmartCard with ICS-SSL (was SSL PEM error)

2009-04-23 Thread Dod
Hello Arno,

After searching for PKCS11 infos I found a nice Delphi PKCS11 explorer
provided with sources, it do not rely on openSSL may be it can help ?

look at sdean12.org

regards.

 Here are the OpenSSL commands :

AG Thanks.

AG I tried to implement dynamic Engines however it seems getting the PIN code
AG from a simple callback is the big problem when implementing dynamic engines
AG with key capabilities. I thought it was easier until I realized that the 
AG OpenSSL guys introduced a huge abstraction layer of a UI which I do not 
AG understand and do not want to understand since it's needed only in function
AG ENGINE_load_private_key to be able to specify a callback which has to 
provide
AG the password/PIN. Arrgh!

AG --
AG Arno Garrels

-- 
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] Using a SmartCard with ICS-SSL (was SSL PEM error)

2009-04-22 Thread Dod
Hello Arno,

I am using Delphi 7 / ICS 6

The  SmartCard  I  am  working  on  is  the French Doctor's HealthCare
professionnal card.

I  had  to  manually extract the Authentication certificate using some
.cert  export  tool because for unknown reason OpenSSL can't access it
directly,  so  once extracted I pass it as PEM file parameter. Private
key is not accessible.

Here are the OpenSSL commands :

engine  -t  dynamic -pre SO_PATH:c:/windows/system32/engine_pkcs11.dll
-pre  ID:pkcs11 -pre LIST_ADD:1 -pre LOAD -pre
MODULE_PATH:c:/windows/cps_pkcs11_w32.dll

s_client   -connect   myssl.pop3.server:995   -engine   pkcs11  -state
-showcerts  -keyform  engine  -key 0:0400 -CAfile test.cer -cert
myauth.pem -certform PEM -ssl3

Using this with sTunnel is nearly the same, just had to adapt to
stunnel.conf structure. There is also a PIN code.

AG Certificates are issued for a one or multiple purposes, that's true.
AG And each purpose added, makes CAs happy since you have to pay for it.

For sure !

Regards.

-- 
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] SSL PEM error

2009-04-21 Thread Dod
Hello,

As I told you I am still learning about thoses Smartcards but it seems
that  the  SmartCards  has  some  functions you can call, I tested one
called  random number generator, but it also can make authentication
key  calculation  and I suppose this is why the private key cannot not
be  extracted  but  only  used by the card when you call some of its
functions to compute some encryption or crypto key validation.

I  know  the  card  I  use  has a signature and a authentication X.509
certificate  that  I  can  access,  but  it  do  not have a encryption
certificate  so  I  cannot  use  it  to  do  strong Virtual Disk Image
encryption,  for  this i'll need to request the encryption certificate
to the authority of the SmartCard constructor.

I am also looking into some other PKCS11 code and sample to try to see
how I could integrate to ICS if my knowledge and skills permit it.

regards.

AG Arno Garrels wrote:
 I  know that private key cannot be extracted from the SmartCard type
 I use
 
 That's hard to believe, if OpenSSL can read the key, and it must read
 it, then it should be possible to write it to a PEM file as well,
 IMHO. 

AG Maybe the smartcart is smarter than I can imagige ;-) I must admit that
AG I haven't used one in my live.

AG --
AG Arno Garrels

-- 
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] SSL PEM error

2009-04-20 Thread Dod
Hello Arno,

I  have  correct  BEGIN/END  CERTIFICATE  but  none  of PEM have a RSA
PRIVATE KEY section.

With  OpenSSL  I  use  PKCS11  but  has I had to manually extract auth
certificate  I  supposed  PKCS11  access  would  not  be really needed
anymore,  but  may  be  it  is still needed because the private key is
still in smartcard and I only extracted public key ?

regards.

AG When you open a PEM file with a text editor the start and end lines may
AG look like: 
AG -BEGIN RSA PRIVATE KEY-
AG [Base64 encoded data..]
AG -END RSA PRIVATE KEY-
AG -BEGIN CERTIFICATE-
AG [Base64 encoded data..]
AG -END CERTIFICATE-

-- 
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] SSL PEM error

2009-04-20 Thread Dod
Hello Arno,

Only one BEGIN/END section in each PEM that is only CERTIFICATE.

AG The private key must not neccessarily be an RSA key, do you see any other
AG PRIVATE KEY section? 

AG That's possible. AFAIK, OpenSSL supports PKCS11 only thru a dynamic
AG Engine, to list current active engines you could type
AG openssl engine -v -t on the command prompt.

I  do  load  the  dynamic  engine  to make my connection sucessful and
access local certificate using key 0:0400 OpenSSL parameter.

I  found  a  PKCS11  library than can access all objects stored on the
SmartCard  so  may  be  I could use it to make my connection work thru
ICS if I can pass correct certificates to ICS.

Regards.

-- 
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] SSL PEM error

2009-04-20 Thread Dod
Hello Arno,

I  thought  ICS  was  based  on OpenSSL as it use the libeay32.dll and
ssleay32.dll like OpenSSL.exe do.

Currently I am able to do a connection using OpenSSL.exe (using pkcs11
engine)  or sTunnel.exe that is configured with nearly same parameters
syntax as OpenSSL as it also rely on libeay32 and ssleay32.

I  know that private key cannot be extracted from the SmartCard type I
use  so  may  be  this  is  why I need to use this parameter -keyform
engine -key 0:0400.

I also use -cert c:\documents and settings\dod\bureau\myAuth.pem
that contains the public X.509 auth certificate.

May  be  -key  parameter  is  used  to  ask  the  Smartcard to do some
computation ?

regards.

AG ICS-SSL currently does not include openssl engine support, however that
AG was just a matter of some hours work to translate the related C headers,
AG but more work was required in order to wrap engine support nicely in a
AG Delphi component. So at the time the only way is to use PEM files.
AG I guess you made some mistake exporting the certificate and private
AG key, try again, I currently don't recall the correct command line, however
AG there are countless FAQ available on the net.

-- 
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] SSL PEM error

2009-04-19 Thread Dod
Hi,

I  am starting to use with ICS SSL using basic icsSSL sample but I get
this error :

Can't load private key error:0906D06C:PEM routines:PEM_read_bio:no
start line.

After  google'ing  I  see  it sometimes happend with bad formatted PEM
files  as  the BEGIN and END format is critical but if I do connection
using  OpenSSL  or  sTunnel  I get no error so PEM file should be well
formatted.

regards.


-- 
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] SSL PEM error

2009-04-19 Thread Dod
Hello Arno,

First  of  all  I have to say I am actually learning about SSL so I am
not  yet  fluent  with  it,  excuse my answers and stupid beginner's
questions .

AG Does your PEM file actually include a private key?
AG Or is the private key stored in a separate PEM file?

Not sure about public or private key as my OpenSSL tests has been done
using  PKCS11 but because the SmartCard has two certificates, I had to
extract  them  manually,  convert  into  cert/pem  and  pass  them  as
OpenSSL's parameter.

AG Which demo are you talking about?

icsSimpleSSL

AG Which PEM files are specified in Demo's Cert File and Key File 
AG Edits?

The demo has CAfile, CertFile and PrivateKey properties, I tried to
set them as I did it with OpenSSL command line.

Do this no start line error mean many things ?

regards.


-- 
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] send and receive file

2009-03-22 Thread Dod
Hello sujono,

I  don't  understand  why  you want to exclude BPL files but it's your
choice, so are your talking about excluding ICS BPL package too ?

regards.

ss Dear Francois,
ss 
ss Probably your question should be: How can I design my own file transfer
ss protocol because I don't want to use a standard protocol ?
ss Right ? 

ss :D Almost right, here's the situation. When i build program with delphi 
ussualy i excluded the bpl files from execute file, so if any user who want's 
to use the execute file it must copy all the
ss bpl file. Now i want to made with ics is when user used the program, it's 
check if in the client there's a bpl files that required to run the application 
if not then it will download form server
ss application. That way i ask this question.


ss nb:if i still don't understand what i write please smile :d my english 
isn't good enough yet.


ss --- On Sat, 3/21/09, Francois PIETTE francois.pie...@skynet.be wrote:

 From: Francois PIETTE francois.pie...@skynet.be
 Subject: Re: [twsocket] send and receive file
 To: ICS support mailing twsocket@elists.org
 Date: Saturday, March 21, 2009, 1:06 PM
  what i wanna ask is can i
 sending a file using TWSocket. Like txt file or
  something like that, thank's
 
 Obviously you can send files using TWSocket: HTTP, FTP,
 SMTP, POP3 and 
 MidWare components all built on TWSocket are - as you know
 - abble to 
 send/receive files.
 
 Probably your question should be: How can I design my own
 file transfer 
 protocol because I don't want to use a standard protocol ?
 
 Right ?
 
 btw: On the user made link at overbyte website, you'll
 find a demo about 
 sending/receiving files. This demo implement a simple
 custom protocol.
 
 --
 francois.pie...@overbyte.be
 The author of the freeware multi-tier middleware MidWare
 The author of the freeware Internet Component Suite (ICS)
 http://www.overbyte.be
 
 -- 
 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
 


-- 
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] EAccessViolations when Posting Data to a HTTPServer

2009-02-04 Thread Dod
Hello Keith,

You  said  disabled, one thing I learned by experience about FWs and
AVs is that they are never 100% disabled, you MUST uninstall them to
be  sure  they  are not causing the problem because disabling keep low
level drivers loaded.

For  catching  exceptions  you  can  simply  use  MadExcept  (free) or
EurekaLog  (not  free  but  more  powerfull and reliable, test version
block  the  EXE  30  days  after  compilation  (or  first  run I don't
remember) so it should be enought for your tests, and as a side effect
it make your app trial period).

regards.

KW I've disabled all Firewalls and anti-virus stuff without any change in the
KW apps behaviour. I even tried re-compiling the ICS library and also directly
KW linking the relevant Pascal units into my project all without any change to
KW the problem. I will now try to catch an exception on my development PC when
KW I dynamically allocate memory. This sometimes happens and I may be able to
KW trap an exception lower down in the ICS code with the debugger if I directly
KW link in the Pascal units. I may also install Windows 2000 Pro on to the EEE
KW Box target machine.

KW ... After this I'm probably out of ideas. It might be time to try the Indy
KW component to see what it does :(

KW Keith Willis.



KW -Original Message-
KW From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
KW Behalf Of Arno Garrels
KW Sent: Monday, 2 February 2009 3:43 AM
KW To: ICS support mailing
KW Subject: Re: [twsocket] EAccessViolations when Posting Data to a HTTPServer

KW Keith Willis wrote:
 Well I tried malloc and free without any joy. I have however been 
 able to ascertain that its crashing in the call to Receive.
 
 More significantly its only crashing on my target machine, (an ASUS 
 EEE Box B202 running Windows XP Home). I can't seem to crash it on my 
 development PC, (A generic Pentium desktop running Windows 2000 Pro).
 
 Is there some difference between the Winsock library in Windows XP 
 Home and Windows 2000 Pro?

KW The sample I posted previously to the list runs without problem on both XP
KW Home and Pro. Is there any security software installed, like a personal
KW firewall, anti-virus software etc.? If so, first try to disable it, if that
KW doesn't help, remove it.  


KW --
KW Arno Garrels
KW -- 
KW To unsubscribe or change your settings for TWSocket mailing list
KW please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
KW Visit our website at http://www.overbyte.be
KW Internal Virus Database is out of date.
KW Checked by AVG - http://www.avg.com 
KW Version: 8.0.173 / Virus Database: 270.7.6/1715 - Release Date: 10/8/2008
KW 7:19 PM

-- 
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] Windows 7 Beta

2009-01-11 Thread Dod
Hello Markus,

Same for me 430MB only and FDM also answer same, GetRight also stops,
in facty I sniffedand it seems that resumed download get HTTP header
but no data so it waits until timeout.

regards.

MH Hello,

MH tired to download the beta from the link provided here earlier,
MH but every time at around 330 MB size I get a broken download.

MH This is either Firefox or a newly installed HTTP download manager
MH named Free Download Manager. This one just says unknown network error.

MH Any hints?

MH Greetings

MH Markus


-- 
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] Windows 7 Beta

2009-01-11 Thread Dod
Hello Angus,

A few hours to install ?!?

 tired to download the beta from the link provided here earlier,
 but every time at around 330 MB size I get a broken download.

ARMSL I think Microsoft removed the files from the original link I published on
ARMSL Saturday, both my attempts stopped mid afternoon.  

ARMSL There is a new link on the W7 home page to the beta, which provides a
ARMSL license key and then downloads from different servers using the Akamai
ARMSL downloader (MSIE only, Firefox does nothing).  

ARMSL The ISO then came down in 30 minutes last night, but took a few hours to
ARMSL install. 

ARMSL Angus


-- 
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] Mailing list usage

2008-12-17 Thread Dod
Me too ;-)

JH I also prefer the mailing list. (Just so you know you aren't the only one!)

JH --
JH Jeff Hamblin
JH Qtools Software 

-- 
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] OT: Beta yet stable secure tunnel client--looking forward to your comments!

2008-11-27 Thread Dod
Hello Fastream,

For now it is stable, no crash, I check gmail each 5 mins, 227MB
transfered today at the time I write this mail.

I will definitly abandon stunnel ;-)

regards.


FT Please let me know of result of the test.

FT THANKS!

FT SZ

FT On Wed, Nov 26, 2008 at 5:47 PM, Fastream Technologies
FT [EMAIL PROTECTED]wrote:

 Hello Dod,

 I think the TrustedCAPath.pem that comes with ICS does not cover the root
 cert that signed mail.google.com.

 PLEASE do test the code against as much stress as possible. It is called a
 beta because the server module is not ready yet. I mean the SSL-TCP
 convertor proxy.

 Best Regards,

 SZ

   On Wed, Nov 26, 2008 at 5:29 PM, Dod [EMAIL PROTECTED] wrote:

 Hello Fastream,

 I  have  checked  the  SSL/TLS  checkbox  (no certificate choosed) and
 unchecked  verify  peer  and now it works on gmail I tested a few MB
 transfert, it's ok and performances seems same as stunnel on my little
 PIII-1Ghz. If I check both SSL/TLS and Verify Peer, it do not work.

 I  can  let  it  run  permanently  if  you want me to test, this gmail
 account  receive  about  200MB of IP camera video movie files each day
 (more or less 1.2MB each file).

 I  will  tell  you  if  it  is more stable than stunnel that I need to
 restart multiple times a day.

 regards.

 FT Thanks for your effort. For the SSL part, this is purely ICS so I
 wonder
 FT where the bug could be--in the component or app?

 FT There is a demo called sslsimpletcpclient or similar in ICSv7. Does
 that
 FT work there?

 FT Can you tell me a step by step lead to the problem including host
 addresses.
 FT And yes I have a gmail account.
 FT Regards,

 FT SZ
 FT On Wed, Nov 26, 2008 at 4:45 PM, Dod [EMAIL PROTECTED] wrote:

  Hello Fastream,
 
  Tested  to  make POP3-SSL tunnel to Gmail like I do with STunnel ...do
  not  work, it connect, I see some data exchange in SSL negotiation but
  no POP3 welcome banner.
 
  regards.
 
  FT We are developing an alternative secure tunneling software.
 Meanwhile
  the
  FT client side is ready. It is based on Wilfried's excellent Socketspy
 yet
  much
  FT enhanced and supports SSL on the outgoing part. It uses single
 threaded
  FT architecture with async ICS sockets. Performance exceeds 500Mbps on
 my
  dual
  FT core 2.4GHz Core 2 Duo system. Hard-coded limit in the beta is 50
  concurrent
  FT connections. SSL part supports client certificates. Could yoiu guys
  have a
  FT look at it and let me know?:
 
  FT http://www.fastream.net/alpha/SecureTunnelClient.zip
 
  FT (includes openssl dlls)
 
  FT Best Regards,
  FT SZ
 



-- 
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] OT: Beta yet stable secure tunnel client--looking forward to your comments!

2008-11-27 Thread Dod
Hello Fastream,

I  don't  know  ... there are already many free SSL proxy solution.

Supporting 10k connections may be interesting for hudge networks but I
think  that  people  will  prefer  Linux based solution that do it for
free.

regards.

FT Would you pay $20 for this product? If you need it, how much would you pay
for SSL-TCP tunnel proxy with 10k connections support? What about $400 for
FT a site license?
FT Best Regards,

FT SZ
FT On Thu, Nov 27, 2008 at 4:07 PM, Dod [EMAIL PROTECTED] wrote:

 Hello Fastream,

 For now it is stable, no crash, I check gmail each 5 mins, 227MB
 transfered today at the time I write this mail.

 I will definitly abandon stunnel ;-)

 regards.


 FT Please let me know of result of the test.

 FT THANKS!

 FT SZ

 FT On Wed, Nov 26, 2008 at 5:47 PM, Fastream Technologies
 FT [EMAIL PROTECTED]wrote:

  Hello Dod,
 
  I think the TrustedCAPath.pem that comes with ICS does not cover the
 root
  cert that signed mail.google.com.
 
  PLEASE do test the code against as much stress as possible. It is called
 a
  beta because the server module is not ready yet. I mean the SSL-TCP
  convertor proxy.
 
  Best Regards,
 
  SZ
 
On Wed, Nov 26, 2008 at 5:29 PM, Dod [EMAIL PROTECTED] wrote:
 
  Hello Fastream,
 
  I  have  checked  the  SSL/TLS  checkbox  (no certificate choosed) and
  unchecked  verify  peer  and now it works on gmail I tested a few MB
  transfert, it's ok and performances seems same as stunnel on my little
  PIII-1Ghz. If I check both SSL/TLS and Verify Peer, it do not work.
 
  I  can  let  it  run  permanently  if  you want me to test, this gmail
  account  receive  about  200MB of IP camera video movie files each day
  (more or less 1.2MB each file).
 
  I  will  tell  you  if  it  is more stable than stunnel that I need to
  restart multiple times a day.
 
  regards.
 
  FT Thanks for your effort. For the SSL part, this is purely ICS so I
  wonder
  FT where the bug could be--in the component or app?
 
  FT There is a demo called sslsimpletcpclient or similar in ICSv7.
 Does
  that
  FT work there?
 
  FT Can you tell me a step by step lead to the problem including host
  addresses.
  FT And yes I have a gmail account.
  FT Regards,
 
  FT SZ
  FT On Wed, Nov 26, 2008 at 4:45 PM, Dod [EMAIL PROTECTED] wrote:
 
   Hello Fastream,
  
   Tested  to  make POP3-SSL tunnel to Gmail like I do with STunnel
 ...do
   not  work, it connect, I see some data exchange in SSL negotiation
 but
   no POP3 welcome banner.
  
   regards.
  
   FT We are developing an alternative secure tunneling software.
  Meanwhile
   the
   FT client side is ready. It is based on Wilfried's excellent
 Socketspy
  yet
   much
   FT enhanced and supports SSL on the outgoing part. It uses single
  threaded
   FT architecture with async ICS sockets. Performance exceeds 500Mbps
 on
  my
   dual
   FT core 2.4GHz Core 2 Duo system. Hard-coded limit in the beta is
 50
   concurrent
   FT connections. SSL part supports client certificates. Could yoiu
 guys
   have a
   FT look at it and let me know?:
  
   FT http://www.fastream.net/alpha/SecureTunnelClient.zip
  
   FT (includes openssl dlls)
  
   FT Best Regards,
   FT SZ
  
 
 

 --


-- 
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] OT: Beta yet stable secure tunnel client--looking forward to your comments!

2008-11-27 Thread Dod
Hello,

FT Ok I see how you view it. I had read that MS had great plans for Windows
FT 2008 as a server OS. How do you guys evaluate it? Do you think Linux TCP/IP
FT is superior or is it just people preferring Linux because it's free?

Linux is free that's true, but it is also prefered for firewall/ssl/ssh
blackbox solutions.

FT Also, Dod, you mentioned stunnel being unstable. What other free solutions
FT do you have experience with? How do they compare to our ICS-based solution?

I have not tested the other solutions from Kiwi or Barracuda.

The  main  problem I have with stunnel is that sometime the connection
between  client  and  stunnel  goes into timeout and then I must retry
multiple  times  until  stunnel  accept  the  conneciton or stop/start
stunnel  service.  I  have not yet investigated about this problem and
found  a workaround by scheduling an stunnel service's stop/start each
hour (for POP3 usage it's not a problem).

But  this is a personnal experience, I am not SSL or stunnel expert at
all.

regards.

-- 
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] OT: Beta yet stable secure tunnel client--looking forward to your comments!

2008-11-27 Thread Dod
Hello Fastream,

FT Ok, is there any way to compile ICS/BCB2009 code for Linux?
FT I had enabled WSocket::keepalive for the timeout problem!

You should add a setting to specify timeout delay.

I  suggest  you  to  read  stunnel  help page to see what kind of conf
parameters  it  provide,  may be you could implement some of them that
can  also  be  usefull  (they  have multiple kind of TIMEOUT setup for
example that may tune up some delay problems).

But  I  explained  myself  bad  about  my  stunnel problem. The client
connect  to  stunnel but nothing happend until some timeout happend, I
don't  know who decide to drop the cnx and why stunnel do not proceed,
may be because it also get timeout from stunnel-gmail connection side,
this is what I must investigate.

Talking commercial I think you may provide the client part for free so
users  can  use/discover it in conjuction with any SSL server and then
see that you also have a strong Windows SSL server product to sell.

Regards.

-- 
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] OT: Beta yet stable secure tunnel client--looking forward to your comments!

2008-11-26 Thread Dod
Hello Fastream,

Tested  to  make POP3-SSL tunnel to Gmail like I do with STunnel ...do
not  work, it connect, I see some data exchange in SSL negotiation but
no POP3 welcome banner.

regards.

FT We are developing an alternative secure tunneling software. Meanwhile the
FT client side is ready. It is based on Wilfried's excellent Socketspy yet much
FT enhanced and supports SSL on the outgoing part. It uses single threaded
FT architecture with async ICS sockets. Performance exceeds 500Mbps on my dual
FT core 2.4GHz Core 2 Duo system. Hard-coded limit in the beta is 50 concurrent
FT connections. SSL part supports client certificates. Could yoiu guys have a
FT look at it and let me know?:

FT http://www.fastream.net/alpha/SecureTunnelClient.zip

FT (includes openssl dlls)

FT Best Regards,
FT SZ

-- 
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] OT: Beta yet stable secure tunnel client--looking forward to your comments!

2008-11-26 Thread Dod
Hello Fastream,

I  have  checked  the  SSL/TLS  checkbox  (no certificate choosed) and
unchecked  verify  peer  and now it works on gmail I tested a few MB
transfert, it's ok and performances seems same as stunnel on my little
PIII-1Ghz. If I check both SSL/TLS and Verify Peer, it do not work.

I  can  let  it  run  permanently  if  you want me to test, this gmail
account  receive  about  200MB of IP camera video movie files each day
(more or less 1.2MB each file).

I  will  tell  you  if  it  is more stable than stunnel that I need to
restart multiple times a day.

regards.

FT Thanks for your effort. For the SSL part, this is purely ICS so I wonder
FT where the bug could be--in the component or app?

FT There is a demo called sslsimpletcpclient or similar in ICSv7. Does that
FT work there?

FT Can you tell me a step by step lead to the problem including host addresses.
FT And yes I have a gmail account.
FT Regards,

FT SZ
FT On Wed, Nov 26, 2008 at 4:45 PM, Dod [EMAIL PROTECTED] wrote:

 Hello Fastream,

 Tested  to  make POP3-SSL tunnel to Gmail like I do with STunnel ...do
 not  work, it connect, I see some data exchange in SSL negotiation but
 no POP3 welcome banner.

 regards.

 FT We are developing an alternative secure tunneling software. Meanwhile
 the
 FT client side is ready. It is based on Wilfried's excellent Socketspy yet
 much
 FT enhanced and supports SSL on the outgoing part. It uses single threaded
 FT architecture with async ICS sockets. Performance exceeds 500Mbps on my
 dual
 FT core 2.4GHz Core 2 Duo system. Hard-coded limit in the beta is 50
 concurrent
 FT connections. SSL part supports client certificates. Could yoiu guys
 have a
 FT look at it and let me know?:

 FT http://www.fastream.net/alpha/SecureTunnelClient.zip

 FT (includes openssl dlls)

 FT Best Regards,
 FT SZ


-- 
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] Anybody know a good web-based admin unit example for THttpServer?

2008-11-24 Thread Dod
Hi,

I  have some experience with such project (I personnaly have a project
for  house  automation  witih  HA7Net  1-Wire  Web  interface embbeded
module) and I/O controls.

The  way  to do it is to use ICS for HTTP get/put/post and RegExp unit
like  TPerlRegexp  (or  DOM  inspector unit) for parsing the retrieved
datas.

Each embbeded Web server module has itw own sepcification so there is
not good unit to provide.

Regards.

FT I want to make a web-based controller interface for one of our projects. Is
FT there a starting point you know? I know I need to prepare HTML and then
FT input it to web server and then extract variables in POST but is there a
FT ready-made unit/component to start with? I am experienced with CGI/ISAPI.
FT Regards,

FT SZ

-- 
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] OT: Is the list still alive?

2008-10-29 Thread Dod
Hello Fastream,

ICS is easy and so well known by 100% Delphi developers that nobody need this
list anymore ;-)

 Six days no messages, very strange...

-- 
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] Low cache size problem and an announcement

2008-09-17 Thread Dod
Hello Fastream,

FT BTW, we just made our shareware IQ Web/FTP Server freeware!

I'll try it, hope FTP part supports Events like OnFileReceive call
myapp.exe %filename% like some other FTP servers.

regards.

-- 
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] Force UDP source port when sending

2008-07-02 Thread Dod
Hello Angus,

I  have  a  SocketServer  because it's the way to make a listening UDP
server  isn't  it  ?  It  listen  for  incoming  UDP  on  port 1812, I
subclassed  it to add some more properties. When OnDataAvailable I try
to  send  UDP  data  back  to  sender but with same 1812 src port and
this produce the bind error.

regards.

 TMySocketServer

ARMSL Why are you using this component, UDP needs only TWSocket, or have you
ARMSL subclassed TWSocket for some reason?  

ARMSL But this stuff works in numerous other applications, there must be
ARMSL something else in error in your application that is causing bind to fail.


ARMSL Angus

-- 
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] Force UDP source port when sending

2008-07-02 Thread Dod
Hello Angus,

ARMSL No idea how that worked, maybe the client was using a different port to
ARMSL reply.  

Absolutely, my other programs never needed to re-use same src port so
I never got the problem.

ARMSL If you have been making use of the TSocketServer client to save
ARMSL application data for the reply, you'll need a rethink.  Perhaps a FIFO
ARMSL queue, I think there's a TList descendent that does that in modern Delphi
ARMSL versions.  With UDP there's always a risk of lost packets, if your
ARMSL transmit conflicts with a new received packet, or at least that's my
ARMSL minimal understanding of UDP. 

UDP  packet  lost happend as they are sent and without any SYN/ACK
dialog between src and dest so UDP is fast but you have to manage
packet acknowledge yourself to not loose data. For my application I
only receive one packet and send one packet back.

regards.

-- 
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] Force UDP source port when sending

2008-07-02 Thread Dod
Hello Hoby,

I  know  about  it, each TCP has an order number that is re-ordered by
the  socket  layer  so it reach ICS well ordered, I never used UDP for
more than one-packet transmission protocol like Radius or NTP.

regards.

HS Hello Dod...

HS Just to be clear about UDP behavior... This only worked because your
HS transmission pattern is based on a single packet exchange. That pattern
HS basically results in a virtual ack/nack process, which orders data by
HS default.  UDP is not only unreliable, it is also inherently UNORDERED.  So,
HS it is possible that packets could appear out of order, if you were sending
HS multi-packet bursts. This requires you to provide for orderly logic as well.
HS Hence, the queue of some type.

HS IMHO... If you need orderly, reliable transmissions... use TCP.  The speed
HS benefit of UDP is only valuable for single packet exchanges.  Otherwise, the
HS robust TCP overhead is much better than anything I can provide instead.

HS Regards...

HS Hoby

HS -Original Message-
HS From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
HS Behalf Of Dod
HS Sent: Wednesday, July 02, 2008 5:35 AM
HS To: ICS support mailing
HS Subject: Re: [twsocket] Force UDP source port when sending

HS Hello Angus,

ARMSL No idea how that worked, maybe the client was using a different port
HS to
ARMSL reply.  

HS Absolutely, my other programs never needed to re-use same src port so
HS I never got the problem.

ARMSL If you have been making use of the TSocketServer client to save
ARMSL application data for the reply, you'll need a rethink.  Perhaps a
HS FIFO
ARMSL queue, I think there's a TList descendent that does that in modern
HS Delphi
ARMSL versions.  With UDP there's always a risk of lost packets, if your
ARMSL transmit conflicts with a new received packet, or at least that's my
ARMSL minimal understanding of UDP. 

HS UDP  packet  lost happend as they are sent and without any SYN/ACK
HS dialog between src and dest so UDP is fast but you have to manage
HS packet acknowledge yourself to not loose data. For my application I
HS only receive one packet and send one packet back.

HS regards.

HS -- 
HS To unsubscribe or change your settings for TWSocket mailing list
HS please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
HS Visit our website at http://www.overbyte.be

-- 
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] Force UDP source port when sending

2008-07-02 Thread Dod
Hello Angus,

Still  not working but I found something, if I do a .SendTo inside the
OnDataAvailable  after  the .ReceiveFrom, it works, no bind error, but
in  my  program  I have to pass the received data to some worker queue
that take some seconds to produce the answer and then when it tries to
.SendToitproducethe   error.   I   tried   to   save   the
SrcSocket(sockaddr_in)  from the .ReceiveFrom to reuse it with .SendTo
but  without  success, still bond error. May be I need to do something
more if I .SendTo outside OnDataAvailable ?

regards.

 And he used TWSocketServer
 and since then I always used the same way too.

ARMSL No idea how that worked, maybe the client was using a different port to
ARMSL reply.  

 TMySocketServer

ARMSL If you have been making use of the TSocketServer client to save
ARMSL application data for the reply, you'll need a rethink.  Perhaps a FIFO
ARMSL queue, I think there's a TList descendent that does that in modern Delphi
ARMSL versions.  With UDP there's always a risk of lost packets, if your
ARMSL transmit conflicts with a new received packet, or at least that's my
ARMSL minimal understanding of UDP. 

ARMSL Angus

-- 
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] Force UDP source port when sending

2008-07-02 Thread Dod
Hello Angus,

I  just tested it on a Vista machine and it works, no bind error, back
to  the  original  NT4 machine (I know its old but we still use some
NT4 servers that work perfectly) and I get bind error ?!?

regards.

-- 
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] Force UDP source port when sending

2008-07-02 Thread Dod
Hello Angus,

Just  for  experience, I tried with my old bad TWSocketServer way of
use,  and  get  the bind error under Vista/XP too, so your advices has
been  very  helpfull  as  I can now make it work under Vista/XP, but I
need to make it work on NT4 :-(

regards.

-- 
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] Force UDP source port when sending

2008-07-01 Thread Dod
Hello Angus,

I still get Bind error using this (simplified) code :-(

procedure TFormMain.WSocketListenerDataAvailable(Sender: TObject;
  ErrCode: Word);
begin
  
TMySocketServer(sender).ReceiveFrom(@BufRadiusAnswerDataAvailable,512,SrcSocket,SrcSocketLen);
  try

TMySocketServer(sender).SendTo(SrcSocket,SrcSocketLen,@BufRadiusAnswerDataAvailable,512);
  except
  on E: Exception do
begin
  DisplayLog('Exception : '+E.Message);
end;
  end;
end;

-- 
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] Force UDP source port when sending

2008-06-28 Thread Dod
Hello Angus,

Thank you, so I cannot force the port to same as listening but if I do
it  within  the  OnDataAvailable  then  the .SendTo will automatically
re-use  the same socket to send data back using same src port whenever
this port is actually used for listening by the server ?

So  this also mean that the OnDataAvailable procedure may take a while
to  get  outside if I need to do lenghtly operation. Is there a way to
keep this socket to re-use later ?

regards.


 So question is : how to force UDP port source when sending it whenever
 this port is used by a listener socket as the other application do ?
 May be thru sockaddr_in structure ?

ARMSL Yes, this is the (simplified) code from the ICS SNTP Time Server that
ARMSL responds to a UDP request with the time to the same IP and port. 

ARMSL http://www.magsys.co.uk/download/software/sntp.zip

ARMSL Angus


ARMSL procedure TTimeServ.WUDPSocketDataAvailable(Sender: TObject; Error:
ARMSL Word);
ARMSL var
ARMSL Buffer : array [0..1023] of char;
ARMSL Src: TSockAddrIn;
ARMSL SrcLen : Integer;
ARMSL NewTime  : LongWord;
ARMSL DataPtr  : TWSocketData ;
ARMSL begin
ARMSL SrcLen := SizeOf(Src);
ARMSL FWUDPSocket.ReceiveFrom(@Buffer, SizeOf(Buffer), Src, SrcLen);
ARMSL SrcIPAddr := Src ;
ARMSL NewTime := Trunc ((GetUTCTime - 2) * 24 * 60 * 60) ;
ARMSL ByteSwaps (@NewTime, SizeOf(NewTime)) ;
ARMSL DataPtr := @NewTime ;
ARMSL if FWUDPSocket.Sendto (Src, SrcLen, DataPtr, SizeOf(NewTime)) =
ARMSL SOCKET_ERROR then TriggerQueryDone(FWUDPSocket.LastError);
ARMSL end;


-- 
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] Force UDP source port when sending

2008-06-25 Thread Dod
Hello,

I  have  an  application (EXE file without sources) that listen UDP on
port  1812  and  when  it  receive data, it send an UDP paquet back to
sender with same source 1812 port.

I  have to do same application but I get exception already binded if
I   use  MySocket.LocalPort:=1812  to  send  paquet  back,  if  I  use
MySocket.LocalPort:=0  it  works  but  on  the  other application will
simply ignore the paquet as src is not 1812 (this is the way it works,
I cannot change this).

So question is : how to force UDP port source when sending it whenever
this port is used by a listener socket as the other application do ?

May be thru sockaddr_in structure ?

Regards.

-- 
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] HttpCli component and possible Windows Vista issues

2008-06-19 Thread Dod
Hello Cyman73,

I  am  not  aware  about  any ICS compatibility issues but I noticed a
general network speed degradation under Vista with all network apps.

regards.

C Hello, 
C I am using HTTPCli component to download files from a server.  I have 
noticed recently 
C that when my application runs in Windows Vista, the download is a lot slower 
when compared to the same file download on a Windows XP system.  Could there be 
some Windows Vista compatibility issues
C with HTTPCli component.  I was just wondering if anyone else reported such 
issues with Vista.
C  
C Thank you.


-- 
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] ICS functions blocked when UI is active

2008-06-04 Thread Dod
Hello,

I  personnaly  always  create  and  manage  the  socket component in a
separated thread. This permit to avoid such problem, and also when the
reverse  appear  when  your socket procedures has a very high activity
that  could  slow  down the main's app message queue that make it less
responsive (or near freezed).

regards.


 I have observed that Windows does not pass messages to an application when
FP certain User Interface functions are active.  Examples are an open drop-down
FP menu or a user dragging a window.  This can cause ICS functions such as this
FP Socket Open code to fail:

{ Use while to repeat connects to ensure enough time for reset to end }
 tTarget := Time + ((FiResetTime / 1000.0) / 86400.0);
 while not FfConnected and (Time  tTarget) do begin
   FiLastError := SocketConnect; { Sets FfConnecting }
   if FiLastError = FX_OK then
   begin
 { FfConnecting is cleared by FWSocketSessionConnected, may happen
FP on
   socket connection timeout }
 while FfConnecting do
   Application.ProcessMessages;{ This can be
FP FWSocket.MessagePump; }
   end; {if FiLastError=FX_OK}
 end; {while not connected}

 With a drop-down menu open, this will run as for long as FiResetTime is
set ( 30 seconds) without connecting.

 Is there a way to make Windows continue to pass messages even if a
FP drop-down menu or other UI function is active?

 Thanks,
 John
 -- 
 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

-- 
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] POST goes into GET when FollowRelocation

2008-05-05 Thread Dod
Hello,

I  call  a  page  using  POST  with parameters. The page produce a 302
redirection answer from server.

Using   FollowRelocation:=true   ICS   follow  the  redirection  but
transform the original POST into a simple GET without any parameter.

So the php script at final location get nothing into its $_POST array.

Is this normal ? ICS should follow relocation with same GET/POST calls
as the original call no ?

regards.

-- 
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] POST goes into GET when FollowRelocation

2008-05-05 Thread Dod
Hell,

I found this note looking in RFC2068 :

When  automatically  redirecting  a POST request after receiving a 302
status  code,  some  existing  HTTP/1.0  user  agents will erroneously
change it into a GET request.

And in RFC2616 :

RFC 1945 and RFC 2068 specify that the client is not allowed to change
the  method  on  the  redirected  request.

So  ICS  is actually not RFC compliant for 302 HTTP relocation, may be
this  will  be  fixed  in  a  next  version  or  may  be there is some
compilation flag to allow it its sources ?

Regards.

FT Hello Dod,

FT Yes AFAIK that's how IE works as well. There was a discussion of this
FT a few years ago on this list. IIRC, somebody else had complained at
FT that time too.

FT Best Regards,

FT SZ

FT On Mon, May 5, 2008 at 4:47 PM, Dod [EMAIL PROTECTED] wrote:
 Hello,

 I  call  a  page  using  POST  with parameters. The page produce a 302
 redirection answer from server.

 Using   FollowRelocation:=true   ICS   follow  the  redirection  but
 transform the original POST into a simple GET without any parameter.

 So the php script at final location get nothing into its $_POST array.

 Is this normal ? ICS should follow relocation with same GET/POST calls
 as the original call no ?

 regards.

 --
 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

-- 
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] Sending mail with SMTPClient including images

2008-04-07 Thread Dod
Hello Jeff,

I  don't understand very well what you mean, but an image in a mail is
a  BASE64  encoded  attachement  so  if  you convert HTMLToString then
you'll  only  get  the  HTML  text part of your mail, not the attached
binary files like images.

To do this you may have to decode attached picture into its orignal
non BASE64 fomrmat then load it into you RichEdit.

regards.

JC Hi
 
JC Currently I have a program that works 99% OK ;-)
 
JC I compose a rich text email in 
 
JC BodyText: TJvRichEdit;
 
JC and I send it with code like this:-
 
JC   if BodyText.PlainText then sl.Text := BodyText.Text
JC   else Common.JvRichEditToHtml.ConvertToHtmlStrings(BodyText, sl);

JC where sl is a TStringList.
 
JC Then (code that was straight out of an example) :-
 
JC procedure TSMTPMailMsgForm.SmtpClientGetData(Sender: TObject;
JC   LineNum: Integer; MsgLine: Pointer; MaxLen: Integer; var More:
JC Boolean);
JC var
JC   Len: Integer;
JC begin
JC   if LineNum  sl.Count then
JC More := FALSE
JC   else begin
JC Len := Length(sl.Strings[LineNum - 1]);
JC { Truncate the line if too long (should wrap to next line) }
JC if Len = MaxLen then
JC   StrPCopy(MsgLine, Copy(sl.Strings[LineNum - 1], 1, MaxLen - 1))
JC else
JC   StrPCopy(MsgLine, sl.Strings[LineNum - 1]);
JC   end;
JC end;

JC Now this works and we get nicely formatted emails sent out.  EXCEPT when
JC the user puts an Image into the BodyText (TJvRichEdit).
 
JC In this case the image is simply dropped.
 
JC I'm hoping that there is a simple solution that doesn't involve
JC rewriting too much !

JC --

JC Jeff Cook

JC The Cooks Oasis

JC The Cooks Ltd

JC Phone: +682 28 213

JC Skype: jeffraro

JC www.cookislandsoasis.com http://www.cookislandsoasis.com/  

 
JC http://fta.firetrust.com/index.cgi?id=jeffraroamp;page=1amp;campaign=
aspect_email I use and recommend MailWasher Pro to keep my mailbox
JC clear of SPAM


-- 
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] UDP Newbie...

2008-04-06 Thread Dod
Hello zayin,

I tried same sample as Wilfried and its OK for me.

Are you sure your port was not in use at the time you tried to start
the program ?

netstat -an will show you all opened/listening port.

if none is listening on your port then you application should
listen.

regards.

Did you try the code that I have posted?

z Yes, copy and paste with:

z ...raised exception ESocketException with message Error 10049 in function
z bind address not available.

z Changing the ip address or port does not change the error. It gives the
z error on the listen.

z Minutes later

z Now after playing with the settings, changing port, ip address etc it works.


z Does not make since.

z Windows firewall did appear for unblocking permission.

z Minutes later

z Now, back to my testing application and changing connect to listen generates
z the same error.

z Going back to connect, all if working again.

z Something I do not understand is going on.


z Ciao,

z Mark




z -Original Message-
z From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
z Behalf Of Wilfried Mestdagh
z Sent: Sunday, April 06, 2008 12:27 PM
z To: ICS support mailing
z Subject: Re: [twsocket] UDP Newbie...

z Hello Mark,

z if you look into source code you see that SendStr call Send, so it is exacly
z the same. I used SendStr just because I was lazy :) I tryed it on a machine
z with an older version of ICS, but it is exacly same result with latest
z version. Did you try the code that I have posted?

z It should work, then try Send or other options.

z ---
z Rgds, Wilfried [TeamICS]
z http://www.overbyte.be/eng/overbyte/teamics.html
z http://www.mestdagh.biz

z Sunday, April 6, 2008, 15:34, zayin wrote:


 Hello,

 How about with send and not sendStr?

 That is the only difference I see.

 And what version of ICS are you using?

 Cheers,

 Mark

 

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Wilfried Mestdagh
 Sent: Sunday, April 06, 2008 4:57 AM
 To: ICS support mailing
 Subject: Re: [twsocket] UDP Newbie...

 Hello Mark,

 I tryed to do the same as you listen with IP addres of same machine, 
 and when I click the button, 'Hello' is received. This is the complete
z unit:

 unit Unit1;

 interface

 uses
   Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls,
z Forms,
   Dialogs, StdCtrls, WSocket;

 type
   TForm1 = class(TForm)
 WSocket1: TWSocket;
 Button1: TButton;
 procedure Button1Click(Sender: TObject);
 procedure WSocket1DataAvailable(Sender: TObject; ErrCode: Word);
 procedure FormCreate(Sender: TObject);
   private
   end;

 var
   Form1: TForm1;

 implementation

 {$R *.dfm}

 procedure TForm1.FormCreate(Sender: TObject); begin
AllocConsole;
 end;

 procedure TForm1.Button1Click(Sender: TObject); begin
WSocket1.Addr := '192.168.0.11';
WSocket1.Port := '47808';
WSocket1.Proto := 'udp';
WSocket1.Listen;
WSocket1.SendStr('Hello');
 end;

 procedure TForm1.WSocket1DataAvailable(Sender: TObject; ErrCode: 
 Word); begin
WriteLn(TWSocket(Sender).ReceiveStr);
 end;

 end.

 ---
 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://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be


z --
z To unsubscribe or change your settings for TWSocket mailing list please goto
z http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
z Visit our website at http://www.overbyte.be


-- 
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] small but pertinent doubt

2008-04-05 Thread Dod
Hello João,

One  more  thing,  I recommend you to create the TWSocketServer into a
separated  thread  just  to  avoid  your  appplication interface to be
overloaded/non responsive in case of hudge activity.

You  can  also  dettach  some client sockets and attach them into some
separated  thread if they may take longer time to execute (for exemple
long database request or disk file activity).

As ICS uses an event driven model this permit to manage very easy tons
of  connections  but  you  must  be responsive and make each triggered
event  finish  as  fast  as possible or the next event (for exemple an
other OnDataAvailable for other client) will have to wait.

You may also create some worker thread that you can send thoses longer
operation the release the event faster.

Regards.

JG Hello,
JG Jus tone more thing: can youn point me to that example? I can't seem to find
JG it:-(
JG Thank you,
JG João

JG -Original Message-
JG From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
JG Behalf Of Wilfried Mestdagh
JG Sent: sábado, 5 de Abril de 2008 0:38
JG To: ICS support mailing
JG Subject: Re: [twsocket] small but pertinent doubt

JG Hello João,

JG As far as I recall is mtSrv an older example with a listening TWSocket
JG and creating data-TWSockets for the clients. So the example with
JG TWSocketServer is the way to go.

JG TWSocketServer is not multithread because it is not needed. It can
JG handle thousands of connections in main thread. But if you want you can
JG make separate thread for each client or for groups of clients if you
JG have for example lengthy code to execute. There is an example with
JG TWSocketServer also multitrheaded.

JG ---
JG Rgds, Wilfried [TeamICS]
JG http://www.overbyte.be/eng/overbyte/teamics.html
JG http://www.mestdagh.biz

JG Friday, April 4, 2008, 22:45, João Gonçalves wrote:

 Hello, thank you for the answer
 In the application that I developed, taking the base of TcpSrv, I use
 TWSocketServer, 2 questions:
 - Is this multithread?
 - Is it better than MtSRv?

 Thank you
 João 

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Wilfried Mestdagh
 Sent: sexta-feira, 4 de Abril de 2008 8:29
 To: ICS support mailing
 Subject: Re: [twsocket] small but pertinent doubt

 Hello João,

 Use TWSocketServer component wich handles all clients by itself. There
 are some example files.

 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz

 Thursday, April 3, 2008, 23:17, João Gonçalves wrote:

 Hello,
 I developed an application in C++ Builder, based on the example TcpSrv.
JG It
 works very well, for a single client. I’m now trying to use several
 clients,
 looking to the documentation, ICS has 2 examples: MtSrv and TnSrv, they
 booth say that this should  be used for a real world server. My question
 (doubt) is: what is more suitable to use?
 Thank in advance
 João 


 -- 
 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


JG -- 
JG To unsubscribe or change your settings for TWSocket mailing list
JG please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
JG Visit our website at http://www.overbyte.be


-- 
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] small but pertinent doubt

2008-04-05 Thread Dod
Hello João,

No,  Put  only the main TWSockerServer into a separated thread, that's
all,  this  is if your applicationis not a service and has a graphical
interface  (one  or  more  windows), so even if you have hudge network
activity, your buttons/menus in your forms will stay responsive.

Making  one  thread  per  client  is  non-sense using asynchronous ICS
model.

But  eventually, you may create some worker thread or temporary thread
that  will  proceed some longer requests without queueing for too long
time all other events ICS sockets will receive.

Regards.

JG OK, let me se if I understood
JG The best option is to take the TCpSrv example from ICs, put it on a new
JG Thread, and create a new Thread for each client, like the example on the
JG MtSrv?
JG Is this line of thinking correct?
JG Thanks once more
JG João

JG -Original Message-
JG From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
JG Behalf Of Dod
JG Sent: sábado, 5 de Abril de 2008 8:45
JG To: ICS support mailing
JG Subject: Re: [twsocket] small but pertinent doubt

JG Hello João,

JG One  more  thing,  I recommend you to create the TWSocketServer into a
JG separated  thread  just  to  avoid  your  appplication interface to be
JG overloaded/non responsive in case of hudge activity.

JG You  can  also  dettach  some client sockets and attach them into some
JG separated  thread if they may take longer time to execute (for exemple
JG long database request or disk file activity).

JG As ICS uses an event driven model this permit to manage very easy tons
JG of  connections  but  you  must  be responsive and make each triggered
JG event  finish  as  fast  as possible or the next event (for exemple an
JG other OnDataAvailable for other client) will have to wait.

JG You may also create some worker thread that you can send thoses longer
JG operation the release the event faster.

JG Regards.

JG Hello,
JG Jus tone more thing: can youn point me to that example? I can't seem to
JG find
JG it:-(
JG Thank you,
JG João

JG -Original Message-
JG From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
JG On
JG Behalf Of Wilfried Mestdagh
JG Sent: sábado, 5 de Abril de 2008 0:38
JG To: ICS support mailing
JG Subject: Re: [twsocket] small but pertinent doubt

JG Hello João,

JG As far as I recall is mtSrv an older example with a listening TWSocket
JG and creating data-TWSockets for the clients. So the example with
JG TWSocketServer is the way to go.

JG TWSocketServer is not multithread because it is not needed. It can
JG handle thousands of connections in main thread. But if you want you can
JG make separate thread for each client or for groups of clients if you
JG have for example lengthy code to execute. There is an example with
JG TWSocketServer also multitrheaded.

JG ---
JG Rgds, Wilfried [TeamICS]
JG http://www.overbyte.be/eng/overbyte/teamics.html
JG http://www.mestdagh.biz

JG Friday, April 4, 2008, 22:45, João Gonçalves wrote:

 Hello, thank you for the answer
 In the application that I developed, taking the base of TcpSrv, I use
 TWSocketServer, 2 questions:
 - Is this multithread?
 - Is it better than MtSRv?

 Thank you
 João 

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Wilfried Mestdagh
 Sent: sexta-feira, 4 de Abril de 2008 8:29
 To: ICS support mailing
 Subject: Re: [twsocket] small but pertinent doubt

 Hello João,

 Use TWSocketServer component wich handles all clients by itself. There
 are some example files.

 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz

 Thursday, April 3, 2008, 23:17, João Gonçalves wrote:

 Hello,
 I developed an application in C++ Builder, based on the example TcpSrv.
JG It
 works very well, for a single client. I’m now trying to use several
 clients,
 looking to the documentation, ICS has 2 examples: MtSrv and TnSrv, they
 booth say that this should  be used for a real world server. My question
 (doubt) is: what is more suitable to use?
 Thank in advance
 João 


 -- 
 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


JG -- 
JG To unsubscribe or change your settings for TWSocket mailing list
JG please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
JG Visit our website at http://www.overbyte.be


JG -- 
JG To unsubscribe or change your settings for TWSocket mailing list
JG please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
JG Visit our website at http://www.overbyte.be


-- 
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] sub: FTPServer Timeout

2008-03-20 Thread Dod
Hello Allan,

There  is  no way to easily detect a broken cnx between a client and a
server if there is no transfert.

Only  the  sender of data can detect the broken cnx and tell about it,
but  the  receiver  of the data will simply wait, there is no reliable
broken  link  msg send to him, it's up to you to manage some timeout
or broken cnx scheme.

I  think  the only way if for the server to send some NOOP data back
to  client  every xxx seconds. This is what some FTP Clients (I saw it
with FIleZilla) do on their side to detect if link is still alive with
Server  and  also  for  not  bieng  disconnect  by  server  because if
inactivity / idle time.

Regards.

AF I am using Delphi 5 with ICS 1.42. My application runs
AF within a LAN. If a machine (say M1) with a TFtpServer
AF component is receiving a file from a TFtpClient (say
AF machine M2) and the LAN wire is pulled out then the
AF TFtpServer never resets the connection. I am able to
AF send a file from a third machine (say machine M3) but
AF not from M2, even though I reset the application on
AF M2. error = 'connection aborted cannot STOR'. 
AF Ironically if application on M2 was terminated in
AF between the transfer then M1 receives '426 connection
AF closed'
AF I want to know how can I refresh the FTPServer's one
AF client connection.


AF Regards
AF Allan



AF   ___ 
AF Rise to the challenge for Sport Relief with Yahoo! For Good  

AF http://uk.promotions.yahoo.com/forgood/

-- 
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] sub: FTPServer Timeout

2008-03-20 Thread Dod
Hello Allan,

There  is  no way to easily detect a broken cnx between a client and a
server if there is no transfert.

Only  the  sender of data can detect the broken cnx and tell about it,
but  the  receiver  of the data will simply wait, there is no reliable
broken  link  msg send to him, it's up to you to manage some timeout
or broken cnx scheme.

I  think  the only way if for the server to send some NOOP data back
to  client  every xxx seconds. This is what some FTP Clients (I saw it
with FIleZilla) do on their side to detect if link is still alive with
Server  and  also  for  not  bieng  disconnect  by  server  because if
inactivity / idle time.

Regards.

AF I am using Delphi 5 with ICS 1.42. My application runs
AF within a LAN. If a machine (say M1) with a TFtpServer
AF component is receiving a file from a TFtpClient (say
AF machine M2) and the LAN wire is pulled out then the
AF TFtpServer never resets the connection. I am able to
AF send a file from a third machine (say machine M3) but
AF not from M2, even though I reset the application on
AF M2. error = 'connection aborted cannot STOR'. 
AF Ironically if application on M2 was terminated in
AF between the transfer then M1 receives '426 connection
AF closed'
AF I want to know how can I refresh the FTPServer's one
AF client connection.


AF Regards
AF Allan



AF   ___ 
AF Rise to the challenge for Sport Relief with Yahoo! For Good  

AF http://uk.promotions.yahoo.com/forgood/

-- 
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] IP Camera

2008-03-14 Thread Dod
Hello zayin,

ICS  has  nothing  special to do with IP camera, you camera may simply
have an HTTP access from which you can retrieve JPEG picture that is a
simple  file  so  you  can  get  thru  a  http GET or POST.

Even a simple WinInet.dll call can do it.

If it is a stream then it may be RTP or RTSP.

regards.

z Hi,

z Has anyone done any work with getting data/images from IP cameras using ICS?
z Seems to be a series of JPGs are sent from the camera.

z Ciao,

z Mark


-- 
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] Listening UDP port and specify same port for UDP sending

2008-03-12 Thread Dod
Hello,

I   have   a  machine  with  only  one  IP  address  and  a  listening
WSocketServer on UDP port XXX.

From same project I want to send UDP data to an other machine but with
.LocalPort set with same as current listening server port.

On  Win2K,  XP and Vista it works well, UDP data is sent with a forced
src port number same as the listening one, but on NT4 (sp6a) it give a
#10048 Addr already in use.

There is an application on this NT4 machine that already work that way
(I  have  not  the  sources)  Any idea how to do make it work is there
something special to set in socket options ?

I  know  I  already  sent a previous message meaning nearly same but I
forgot  to  tall that an application was already doing it perfectly on
the NT4 machine so there should be a way to do it with ICS.

Thanx for any help.

Here a very small code that can reproduce the problem :

procedure TForm1.Button1Click(Sender: TObject);
begin
  // first we make it listen
  WSocketServer1.Port:='12345';
  WSocketServer1.Proto:='udp';
  WSocketServer1.Addr:='127.0.0.1';
  WSocketServer1.Listen;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  // then we try to send
  WSocket1.LocalPort:='12345';
  WSocket1.Port:='12345';
  WSocket1.Addr:='127.0.0.1';
  WSocket1.Proto:='udp';
  WSocket1.Connect;
  WSocket1.SendStr('hello world');
  WSocket1.Close;
end;

procedure TForm1.WSocketServer1DataAvailable(Sender: TObject; ErrCode:
Word);
begin
  // this trigger nciely on 2K/XP/Vista, not NT4
  showmessage(TWSocketServer(sender).ReceiveStr);
end;

-- 
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] Problem using same UDP port for both listen and send

2008-03-10 Thread Dod
Hello Dave,

Thanx  for  this  long  answer,  I  am already aware of all the way it
should  be  done,  but  I  have  to work on a very old client/server
project  for  which  the  sources has been lost, so I need to keep the
same  way  it  actually  works and do the patch thru a proxy that will
emulate the original server way of managing it's UDP protocol.

Neverless, I found a workaround.

Regards.

DB Unless you are using an existing known protocol, in which case you'd
DB idealy use one of the recognised existing port numbers   Port 80,
DB 8008, 8080 for an HTTP server for example.

DB Letting the system pick a random port to listen on as a server is a bit
DB unproductive, as how would you inform any likely clients (not on the
DB same machine) what server port to connect to?...

DB Best I think to pick a specific port number to start with for the server
DB to create and listen on, and then let the clients pick a unused port for
DB them to talk with, to connect to your server that is listnening on a
DB known port.   (UDP is a connectionless protocol of course)

DB It is posible to use the same port number to talk and listen on, but not
DB generaly on the same physical machine for both a client and server,
DB something has to be different between them, either the IP address, or
DB port number (or both)   Or, the system hasn't a clue as to who what
DB where etc...

DB I guess you could define another localhost address, 127.0.0.2 for
DB example perhaps?  AFIK there is no reason why a single machine can't
DB have multiple local loopback addresses.  Unless someone else knows
DB different.  Then you could use the same Port number for both client
DB and server, with care...

DB Check out...
DB http://www.iana.org/assignments/port-numbers

DB For typical known port numbers, some may be of use, many are worth
DB avoiding!  (to keep script kiddies away, and to avoid strange connect
DB requests)...

DB Note, that ports in the range of...
DB 49152 through 65535 are avaialable for Private or Dynamic port
DB assignments.   You can use any of them for anything, and being way up
DB there in High Port Land should be well out of the way of any malicious
DB port scanners looking for something to play with

DB Hope something helps..

DB Cheers.

DB Dave B.

 

 -Original Message-
 From: Dod [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 06, 2008 2:48 PM
 To: ICS support mailing
 Subject: [twsocket] Problem using same UDP port for both 
 listen and send
 
 Hello,
 
 I am working on something like :
 
 -  Create Server UDP socket port 0 - Winsock select the 
 listening port itself
 
 - I retrieve port number using GetSockName/.sin_port
 
 - The Socket server is now listening
 
 -  I  create  a  Socket  client  to connect to other machine 
 but I set LocalPort  with  same  socket  number  as  the one 
 retrieved by server socket
 
 - I .Connect the client to other machine and .Send the data
 
 All works fine on XP but the final program must run on NT4 
 and if I do this I get WSAEADDRINUSE ( 10048 ) Address already in use.
 
 If i set LocalPort to 0 before .Connect then all is fine of course.
 
 Any idea why NT4 cannot not set localport for UDP sending 
 with same number as port used by a server socket ? May be an 
 old NT4 Winsock limitation ?
 
 I know NT4 is old but I have to work on a very old server 
 that can't be upgraded. May be some of you remember such limitation ?
 
 Regards.
 
 
 
DB This mail has been scanned by Palmer Cook Computer Services Limited.  
www.palmercook.co.uk

-- 
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] TFtpClient, DataSocket.OnSessionClosed event is not always fired.

2008-03-08 Thread Dod
Hello asvetov,

Firewalls and Anti-virus are NEVER 100% disabled because they load low
level  drivers on system boot. So the only way for you to be sure that
firewall is not involved in your problem is to uninstall it or you may
reboot  Windows  in  safe  mode  and  temporary rename kl1.sys klf.sys
klim5.sys so Kaspersky will not run at all next boot.

regards.

a once again: firewall is completely deaktivated. Background file scanner too. 
But seems to be, that some Kaspersky componnents still active and only when I 
complete deactivate protection works all
a fine.

a BTW: As for Kaspersky, I really like it and did my BEST experiense with it.

a 08.03.08, 20:52, Arno Garrels [EMAIL PROTECTED]:

 Sounds more like somebody is blocking/intercepting the call
 to Connect?
 BTW: I do not use any real time AV scanners or other background
 security tools, it's my experience that they make more trouble
 than they help. Same applies to personal firewalls. They all 
 hook the API function calls as they like. If they do not hook
 correctly the hooked application will fail or even crash. And
 especially Kaspersky is known to do ugly things in their drivers
 (as I read in a nice analysis from some driver-guru on the internet
 a couple of months ago). Unfortunately it's always the poor
 application vendor who is blamed :(
 --
 Arno Garrels


-- 
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] Problem using same UDP port for both listen and send

2008-03-07 Thread Dod
Hello,

I am working on something like :

-  Create Server UDP socket port 0 - Winsock select the listening port
itself

- I retrieve port number using GetSockName/.sin_port

- The Socket server is now listening

-  I  create  a  Socket  client  to connect to other machine but I set
LocalPort  with  same  socket  number  as  the one retrieved by server
socket

- I .Connect the client to other machine and .Send the data

All works fine on XP but the final program must run on NT4 and if I do
this I get WSAEADDRINUSE ( 10048 ) Address already in use.

If i set LocalPort to 0 before .Connect then all is fine of course.

Any idea why NT4 cannot not set localport for UDP sending with same
number as port used by a server socket ? May be an old NT4 Winsock
limitation ?

I know NT4 is old but I have to work on a very old server that can't
be upgraded. May be some of you remember such limitation ?

Regards.

-- 
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] Problem whith FTP Server and Microsoft IIS

2008-03-06 Thread Dod
Hello Arnold,

I am french but as this mailing list is English...

May be you can do something :

Shutdown  IIS,  start you ICS FTP server (if you can specify listening
IP it should use only one IP), then start IIS again, it should bind to
all non-used port 21 on the other IPs.

regards.

AF  I don't understand. 

AF Indeed, if you launch two FTP Server with the same IP address server and the
AF same port, it can't be OK. 

AF However, in this case, these IP addresses are all differents.

AF And on this server, 4 IIS FTP Server run on 4 differents IP addresses but
AF the 4 use the same port 21 and it's OK.

AF It's not OK for my ICS FTP Server.

AF Sorry but I'm French and I don't understand all in English.

AF Arnold.

 

 

AF   _  

 So I need to put another FTP server. So I've created an other address:
 192.168.2.154 on port 21. But when I launch my soft (based on ICS FTP
 Server), I've Error 10048 in function Bind - Address already in
 Use. 
 
AF That error is rather self explantory. 
 
 If I shut down all IIS ftp server, it's OK.
 
AF That's as designed, on one interface/IP and port only one socket may
AF listen (in older windows versions it was sometimes possible to hijack an
AF already listen socket, however that's no longer possible in most cases).
AF In windows server versions you can create plenty of virtual interfaces.
 
AF --
AF Arno Garrels [TeamICS]
AF  http://www.overbyte.be/eng/overbyte/teamics.html
AF http://www.overbyte.be/eng/overbyte/teamics.html
 
 
AF Arnold FLUTEAUX wrote:
 Hi,
 
 
 
 I use ICS for in a ftp Server. And I've a problem. On a server which
 has several IP addresses and for each adress an IIS FTP Server is
 launched on the same port 21.
 
 So that:
 
 On IIS:
 
 FTP on 192.168.2.150 - Port 21
 
 FTP on 192.168.2.151 - Port 21
 
 FTP on 192.168.2.152 - Port 21
 
 FTP on 192.168.2.153 - Port 21
 
 
 
 So I need to put another FTP server. So I've created an other address:
 192.168.2.154 on port 21. But when I launch my soft (based on ICS FTP
 Server), I've Error 10048 in function Bind - Address already in
 Use. If I shut down all IIS ftp server, it's OK.
 
 I precise that I've no choice in this configuration.
 
 
 
 Thanks for help
 
 Arnold


-- 
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] Problem using same UDP port for both listen and send

2008-03-06 Thread Dod
***second  sending  as  the  first mail ssems to never reach the mailing
list***

Hello,

I am working on something like (very old project using applicatons for
which I have not the sources):

-  Create Server UDP socket port 0 (Winsock select the listening port
itself) and do .Listen

- I retrieve port number using GetSockName/.sin_port

-  I  create  a client socket to connect to an other machine but I set
LocalPort  with  same  socket  number  as  the one retrieved by server
socket

-  I  .Connect the client to other machine and .Send the data, and all
is  fine,  the  machine  on  the other side receive UDP packet and the
application  now  to  which port it has to send data back (that is the
way it works and I can't change this).

All  works  fine on my XP dev machine but the program must finally run
on  NT4  and  once  I  try on it,I get WSAEADDRINUSE ( 10048 ) Address
already in use.

So I tried to understand and it seems it has something to deal with
Port usage not Addr really.

Now if i set LocalPort to 0 before .Connect then all is fine of course
because NT4 will select its own free port for sending.

Any  idea  why  NT4  do not accept localport for UDP sending to be set
with  same number has a listening server port on same machine/ip ? May
be an old NT4 Winsock limitation ?

I know NT4 is old but I have to work on a very old server that can't
be upgraded. May be some of you remember such limitation ?

Regards.


-- 
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] Slightly OT : Microsoft open documentation to many of its protocols

2008-02-25 Thread Dod
May be usefull for people working with ICS and want to do something
with some of Server protocols used by microsoft products.

http://msdn2.microsoft.com/en-us/library/cc216517.aspx

-- 
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] UDP problem

2008-02-06 Thread Dod
Hello Skok,

I don't really know what the problem is but I think you do something
too complicated...

A simple .Send to 255.255.255.255 is enought, then OnDataSent do a .Close

why use a TTimer ?

ST I'm trying to create application that would run on multiple machines. 
ST This application has to know IP addresses of all other machines running 
ST same software.
ST I'm trying to do something like discovery on network. Protocol I decided 
ST to use for discovery is UDP. On mailing list I already saw, that only 
ST one TWSocket component
ST can be used for receiving and sending data. So, I wrote following code 
ST for listening:

ST UDPSocket.Proto :='udp';
ST UDPSocket.Addr :='0.0.0.0';
ST UDPSocket.Port :='1234';
ST UDPSocket.Listen;
ST Timer1.Enabled :=True;

ST and on timer event there is code for sending broadcast data to notofy 
ST others about existence:

ST procedure TForm1.Timer1Timer(Sender: TObject);
ST var
ST   SendTo:TSockAddrIn;
ST   LenSendTo:integer;
ST   Data:string;
ST begin
ST   LenSendTo:=SizeOf(SendTo);
ST   Data:='Test'+#0;
ST   SendTo.sin_port :=htons(1234);
ST   SendTo.sin_addr :=StrToInAddr('255.255.255.255');
ST   SendTo.sin_family :=AF_INET;
ST   UDPSocket.SendTo(SendTo,LenSendTo,@Data[1],Length(Data));
ST end;

ST StrToInAddr is function that I found in mailing list.

ST On receive even I have code from udplistener sample:

ST var
ST Buffer : array [0..1023] of char;
ST Len: Integer;
ST Src: TSockAddrIn;
ST SrcLen : Integer;
ST begin
ST SrcLen := SizeOf(Src);
ST Len:= WSocket.ReceiveFrom(@Buffer, SizeOf(Buffer), Src, SrcLen);
ST if Len = 0 then begin
ST   Buffer[Len] := #0;
ST   listbox1.Items.Add(StrPas(Buffer));
ST end;
ST end;

ST Problem is that sending is ok (no error), but ondataavaliable event 
ST never gets fired, so I'm assuming that nothing is sent.

ST What am I doing wrong.

ST P.S. I have been using ICS for awhile now and I think that this is most 
ST stable component suite for networking. Keep the good work.

ST Regards,

ST Skok Tone

-- 
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] Error #122 OnSessionConnected (UDP)

2008-02-05 Thread Dod
Hello,

I  use ICSv6, and do .Connect using standard TWSocket component server
but inside OnSessionConnected the ErrCode is #122 instead of 0.

If   I   don't   care   about   ErrCode   code  and  do  .Send  inside
OnSessionConnected  as usual, then UDP buffer seems correctly sent and
is received as it should by UDP server.

Error  code  #122  is  not  a  Winsock error but a Windows one telling
something about not enought space in buffer used to do a system call.

Any idea ?

Regards.

-- 
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] Error #122 OnSessionConnected (UDP)

2008-02-05 Thread Dod
Stupid I am...I was using if Error=0 (and I have a variable called
Error somewhere in the program) instead of if ErrCode=0.

D Hello,

D I  use ICSv6, and do .Connect using standard TWSocket component server
D but inside OnSessionConnected the ErrCode is #122 instead of 0.

D If   I   don't   care   about   ErrCode   code  and  do  .Send  inside
D OnSessionConnected  as usual, then UDP buffer seems correctly sent and
D is received as it should by UDP server.

D Error  code  #122  is  not  a  Winsock error but a Windows one telling
D something about not enought space in buffer used to do a system call.

D Any idea ?

D Regards.

-- 
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] TCP and fragmentation

2008-01-31 Thread Dod
Hello Markus,

Fragmentation as other guys said is IP issue and you can do nothing
about it if any device between sender and receiver's machines cannot
bring packet the same size they have been sent from source.

IP protocol has come message system to ask for sender to resend packet
as  fragmented  (below and under no control of ICS). But as it is ICMP
messages  and  many  firewalls may block it default, then your machine
may  never receive the fragmentation's request. This also happend when
you  are  using  some  VPN network and you may have to set MTU size of
sender's  machine  down to 1400 that is a good value. This can be done
thru  registry  or  using some tools like DoctorTCP 0.21 (DrTCP) or SG
TCP Optimizer 2.0.3

Regards.

MH since the device I want to talk to does only support sending back the 
MH UDP answerts to a predefined IP thus requiring a fixed IP adress on PC 
MH side I have to experiment with TCP now.

MH I originally used UDP because it's fragmentation free because behind the 
MH device I'm talking to sits another one which actually gets the data I 
MH send but doesn't accept any fragmentation.

MH The vendor of the device I'm talking to now suggested I use TCP to get 
MH rid of my fixed IP and that he's also using ICS and doesn't get 
MH fragmentation (assuming max. bytes sent  MTU which is the case here as 
MH well).

MH So what about TCP fragmentation now? How often does it occur in this 
MH situation? Is it less likely to occur on a lan than on some internet 
MH connection? Can I influence it in any way?

MH I'm using ICS V5 (the one on the partner DVD of Rad Studio 2007).

MH Greetings

MH Markus

-- 
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] How to simulate 10053?

2008-01-24 Thread Dod
Hello DZ-Jay,

Try NetStat32 (delphi source provided) it will show you connected TCP
on the machine and using del key you can kill each connection you
want and generate your error I think.

http://smeschini.altervista.org/download/netstat32.php

regards.

DJ Unplug the network cable midway through transaction?

DJ dZ.

DJ S.Korotky wrote:
 Hello All!
 
 Is there a way to generate 10053 error from ICS?
 
 Calling Abort does close a connection gracefully as well as CloseDelayed
 (except for a dropped buffered data, if any).
 
 Some soft, such as MS IE, often produces 10053 when it closes a connection.
 FF does not. I need to reproduce this MS feature for testing purposes.
 
 Thanks in advance.
 
 Stanislav Korotky.
 

-- 
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] Strange e-mail problems Server 2003

2008-01-02 Thread Dod
Hello Arno,

I see in the log that there is 5 seconds delay between DATA and the
10054 error. This may be interesting.

During  this  delay  do you send data ? I say this because some server
will  close cnx if no data transmitted fast enought and do not receive
data for xx seconds, usually the timeout is between 1 or 3 minutes but
I know a server that wait only 3 seconds (may be bad configuration).

The  best  is  to ask client to manualy telnet port 25 into the server
and  type  a  SMTP  sequence and wait 5 seconds betweent each line you
type.

Also may be there is some check-back cnx to the client's machine and
if FW is ON then machine cannot be checked.

regards.

AG One of my customers reported problems sending mail with an TSmtpCli
AG application when the Windows firewall is turned on. Strange is that
AG sending mail data fails for some reason and the server drops the 
AG connection after ~2 minutes (of inactivity) even though port 25
AG is explicitely opened.

AG First log is with firewall turned off, mail is sent successfully,
AG second log with firewall turned on and port 25 explicitely opened:

AG 01.01.08 2:22:47 PM  MAIL FROM:[EMAIL PROTECTED]
AG 01.01.08 2:22:48 PM  250 2.1.0 [EMAIL PROTECTED]... Sender ok
AG 01.01.08 2:22:48 PM  RCPT TO:[EMAIL PROTECTED]
AG 01.01.08 2:22:48 PM  250 2.1.5 [EMAIL PROTECTED]... Recipient ok
AG 01.01.08 2:22:48 PM  DATA
AG 01.01.08 2:22:48 PM  354 Enter mail, end with . on a line by itself
AG 01.01.08 2:22:48 PM  .
AG 01.01.08 2:22:48 PM  250 2.0.0 m01JMoVp009311 Message accepted for delivery
AG 01.01.08 2:22:48 PM  QUIT
AG 01.01.08 2:22:48 PM  221 2.0.0 ms-smtp-xyz.com closing connection


AG 01.01.08 4:43:40 PM  MAIL FROM:[EMAIL PROTECTED]
AG 01.01.08 4:43:41 PM  250 2.1.0 [EMAIL PROTECTED]... Sender ok
AG 01.01.08 4:43:41 PM  RCPT TO:[EMAIL PROTECTED]
AG 01.01.08 4:43:41 PM  250 2.1.5 [EMAIL PROTECTED]... Recipient ok
AG 01.01.08 4:43:41 PM  DATA
AG 01.01.08 4:43:41 PM  354 Enter mail, end with . on a line by itself
AG 01.01.08 4:45:46 PM  Error=10054 Session aborted!

AG Adding the application to the exception list makes no difference.
AG Anybody any idea?

AG --
AG Arno Garrels 


-- 
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] ICS hidden window cannot be created error #8--what isthis?

2008-01-02 Thread Dod
Hello,

Try  my  little  TinyResMeter ( http://www.pesoft.com/trm ) and select
the Windows and Handles fields, then you'll see if you reach a big
number  you  must  subscribe  to  get  improved 0.97 version but 0.96a
should be enought just to view thoses values.

regards.

rgn there may be also another problem: afaik windows xp 32bit has only 64K
rgn handle numbers for windows available. this problem also occurs if you have 
a
rgn lot of apps open, ie. 2 browsers with a lot of tabs, and the the bat
rgn email client which uses a lot of handles, also some instances of
rgn winrar and explorer.
rgn if that condition occurs you cannot open a new window even if you have
rgn plenty of ram available, it may be that you open an explorer window
rgn and a part is completely gray.
rgn you can use taskmanager to see the number of handles a process uses
rgn (in the view menu).

FT Hello,

FT What about increasing WH_MSG_MAX to 1000 from 100? Isn't this suppose to
FT reduce this problem by creating less number of hidden windows? I know that
FT it would be slower for the for loop to find the message but there seems to
FT be no other way to support 10k users, wrong?

FT Thanks,

FT SZ


FT On 1/1/08, Francois PIETTE [EMAIL PROTECTED] wrote:

  Please see http://www.fastream.com/ics/icshiddenwindow.png .

 Basically, it shows error #8 when creating a window.

  This occurs
  when I run the service with attach to process and with full debug
  information. There are 8000-1 clients connected. Optimizations on.
  What
  could be the reason?

 According to MSDN, error #8 is not enough memory.

  I configured for 512 clients (plus 512 thttpcli's)
  for each reverse proxy thread. Is this too much? What is the ideal
  clients/thread ratio? How can I support 10k clients? I have 2GB RAM.

 Add more RAM.


 Contribute to the SSL Effort. Visit
 http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 The author of the freeware multi-tier middleware MidWare
 The author of the freeware Internet Component Suite (ICS)
 http://www.overbyte.be





rgn -- 
rgn Mit freundlichen Grüßen
rgn [EMAIL PROTECTED]
rgn mailto:[EMAIL PROTECTED]


-- 
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] [OT] Merry Christmas !

2007-12-24 Thread Dod
Merry Christmas and a Happy New Coding Year to everybody ;-)

FP Hi everybody !
FP I want to wish a Merry Christmas and a Happy New Year to you and your
FP families.
FP [EMAIL PROTECTED]
FP Author of ICS (Internet Component Suite, freeware)
FP Author of MidWare (Multi-tier framework, freeware)
FP http://www.overbyte.be

-- 
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] http://www.overbyte.be/

2007-11-15 Thread Dod
Now  the  home page show this (for non-french people this mean the Web
server  is  under  Windows  2K  and  encoutered  a  problem after some
Microsoft update. Re-install is on the way, be patient :

Maintenance mode
Cette machine windows 2000 vient d'etre victime d'une mise a jour microsoft 
corrompue 
la reinstallation des backups ne résout rien
nous avons mis ce serveur apache provisoire pour vous informer de l'évolution
nous réinstallons les sites un à un
il est probable que tout ce qui est composants Micro$oft : ftp, odbc, access, 
asp ne marchera pas avant une longue huit de réinstallation 
La page que vous voyez pour l'instant est peut etre ancienne, n'oubliez pas de 
rafraichir et faire F5 dans votre navigateur pour voir les nouveaux contenus

-- 
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] [OT] Writing Vista applications using Delphi

2007-11-13 Thread Dod
Hello Francois,

I  also  found two or three white papers about it (and yours also), it
is  very  important  to  read  them  if  people  want  to  make  their
application Vista compliant (and compatible).

It took me 3 months last year to understand thoses new features that
broke my applications.

regards.

FP Altough out of topic, I found this document very interesting:
FP 
http://bdntv.borland.com/pix/fhaglund/VistaUACandDelphi/VistaUACandDelphi.ppt

FP Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
FP --
FP [EMAIL PROTECTED]
FP The author of the freeware multi-tier middleware MidWare
FP The author of the freeware Internet Component Suite (ICS)
FP http://www.overbyte.be

-- 
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] [OT] Writing Vista applications using Delphi

2007-11-13 Thread Dod
Hello Hoby,

Try to run BDS EXE as admin, do it help ?


HS Great document!  Thanks!  Great timing for me, too.  I have been working the
HS last several days on trying to come up to speed on some Vista development
HS issues and that was a great help.

HS BTW, since you brought it up... ;) Can I ask a related question?  If it is
HS OT, then perhaps you can direct me to a better place to ask it?

HS I have just got a new Vista Laptop (since you can't get anything else now)
HS and am having the worst time trying to run BDS 2006 on it.  I have tried all
HS the approaches I have found on line, but it is just really unstable and
HS often locks up Vista when I close BDS!!! It really surprises me that BDS can
HS lock up Vista?!?!?

HS Am I correct in assuming that my ONLY solution is to move to Delphi 2007 or
HS RAD studio 2007?  If anyone knows sometime more than me about trying to run
HS 2006 STABLY on Vista, I would love to know it.  All the web references help
HS a bit, but not much.  Since I just discovered that CodeGear's stance is that
HS 2006 is not certified for Vista, I assume that means my ONLY choice is to
HS move to a CodeGear 2007 product of some type.

HS Oh well, ANOTHER product I have to buy THANKS to Microsoft.  :(  Ya know,
HS this development habit is really getting expensive... ;)

HS -Original Message-
HS From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
HS Behalf Of Francois PIETTE
HS Sent: Tuesday, November 13, 2007 9:40 AM
HS To: twsocket@elists.org
HS Subject: [twsocket] [OT] Writing Vista applications using Delphi

HS Altough out of topic, I found this document very interesting:
HS http://bdntv.borland.com/pix/fhaglund/VistaUACandDelphi/VistaUACandDelphi.pp
HS t

HS Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
HS --
HS [EMAIL PROTECTED]
HS The author of the freeware multi-tier middleware MidWare
HS The author of the freeware Internet Component Suite (ICS)
HS http://www.overbyte.be

HS -- 
HS To unsubscribe or change your settings for TWSocket mailing list
HS please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
HS Visit our website at http://www.overbyte.be

-- 
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] [OT] Writing Vista applications using Delphi

2007-11-13 Thread Dod
Hello Hoby,

Sorry don't have the URL :

UltraVnc Vista support.htm  - not delphi related but nice because
they had to deal with some big problems and they explain how they
fixed them.

Creating Windows Vista Ready Applications with Delphi.htm

What's in the Oven Leveraging Vista's UAC with Delphi Part 2.htm

What's in the Oven Leveraging Vista's UAC with Delphi Part 3.htm


HS Can you supply references to the white papers you mentioned?

HS -Original Message-
HS From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
HS Behalf Of Dod
HS Sent: Tuesday, November 13, 2007 10:29 AM
HS To: ICS support mailing
HS Subject: Re: [twsocket] [OT] Writing Vista applications using Delphi

HS Hello Francois,

HS I  also  found two or three white papers about it (and yours also), it
HS is  very  important  to  read  them  if  people  want  to  make  their
HS application Vista compliant (and compatible).

HS It took me 3 months last year to understand thoses new features that
HS broke my applications.

HS regards.

FP Altough out of topic, I found this document very interesting:
FP
HS http://bdntv.borland.com/pix/fhaglund/VistaUACandDelphi/VistaUACandDelphi.pp
HS t

FP Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
FP --
FP [EMAIL PROTECTED]
FP The author of the freeware multi-tier middleware MidWare
FP The author of the freeware Internet Component Suite (ICS)
FP http://www.overbyte.be

HS -- 
HS To unsubscribe or change your settings for TWSocket mailing list
HS please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
HS Visit our website at http://www.overbyte.be

-- 
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] A TFtpCli application performance question

2007-10-16 Thread Dod
Hello Arno,

Also  avoid/minimize  LIST  command's  use  as much as possiblebetween
file's  upload,  this  can  take time especially if directory has many
files inside.

regards.

 I've written a FTP-uploader without taking much care of speed issues.
 It uploads 17000 files with total size of 830 MB in 56 mins in my
 100 MBit/s LAN (logging each FTP-command).
 
 What do you think, is that:
 a) Poor
 b) OK
 c) Fast
 
 I currently don't have any idea.

-- 
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] TWSocketServer

2007-06-28 Thread Dod
Hello Engi,

I think you must create one instance of TWSocketServer per port.

E Is a TWSocketServer can manage several port ?
 
E Engi

-- 
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] HTTPCli and proxy settings

2007-05-19 Thread Dod
Hello Maurizio,

Yes, .pac proxy script may be more difficult to manage.

I  could  do pure Wininet async download so i'll be sure to follow the
right proxy settings but its hard to leave ICS once you tasted it ;-)

Next  time i'll see Bill Gates, I'll ask him to implement some Wininet
IsLocalAddr function !

regards.



 OK  thanks  i'll look at it. My need is very basic as it is only to be
 sure to download a file from specific URL, so no script envolved.

ML A script could be involved if Automatic detect settings is set, and is
ML involved if Use automatic configuration script is set.

 I  think it can be done with regexp (or basic '*' masked string search
 routine) on exception list, getting all IP attached to network card(s)
 (with  netmask) and excluding proxy if IP is inside any of the mask of
 the IP(s).

ML This could work for local addresses.
ML But if you have more than one interface (real NIC, emulated NIC or dial-up) 
the
ML problem is that you should detect which interface will be used to reach a
ML specific IP, since each dial-up has it own proxy settings while there are 
only
ML one for the LAN.

ML I never had this situation so I delayed to solve it :-)


ML Bye, Maurizio.

ML 
ML This mail has been sent using Alpikom webmail system
ML http://www.alpikom.it


-- 
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] HTTPCli and proxy settings

2007-05-19 Thread Dod
Hello Arno,

I don't have OverbyteIcsWinsock2.pas unit in my ICS V6 installation...

Before  I  need some network oriented function, I usually first try to
look  around  ICS  sources because there are a lot of usefull internal
functions already implemented, FileMD5 or ParseURL are two examples of
functions I was about to do myself that I found inside ICS.

regards.

AG Dod wrote:
 Next  time i'll see Bill Gates, I'll ask him to implement some Wininet
 IsLocalAddr function !

AG Possibly usefull: ICS v6 function WSocket2IsAddrInSubNet in 
OverbyteIcsWinsock2.pas?

AG --
AG Arno Garrels [TeamICS]
AG http://www.overbyte.be/eng/overbyte/teamics.html 



 
 regards.
 
 
 
 OK  thanks  i'll look at it. My need is very basic as it is only to
 be sure to download a file from specific URL, so no script envolved.
 
 ML A script could be involved if Automatic detect settings is set,
 and is ML involved if Use automatic configuration script is set.
 
 I  think it can be done with regexp (or basic '*' masked string
 search routine) on exception list, getting all IP attached to
 network card(s) (with  netmask) and excluding proxy if IP is inside
 any of the mask of the IP(s).
 
 ML This could work for local addresses.
 ML But if you have more than one interface (real NIC, emulated NIC
 or dial-up) the ML problem is that you should detect which interface
 will be used to reach a ML specific IP, since each dial-up has it
 own proxy settings while there are only ML one for the LAN.
 
 ML I never had this situation so I delayed to solve it :-)
 
 
 ML Bye, Maurizio.
 
 ML 
 ML This mail has been sent using Alpikom webmail system
 ML http://www.alpikom.it


-- 
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] HTTPCli and proxy settings

2007-05-19 Thread Dod
Hello Arno,

Ouch...true ! I downloaded it 20 dec 2006 but forgot to install it !

regards.


AG Dod wrote:
 Hello Arno,
 
 I don't have OverbyteIcsWinsock2.pas unit in my ICS V6 installation...

AG Then you are using an old version. The unit also includes a function
AG to get systems interface list easily.

AG --
AG Arno Garrels [TeamICS]
AG http://www.overbyte.be/eng/overbyte/teamics.html
 

 
 Before  I  need some network oriented function, I usually first try to
 look  around  ICS  sources because there are a lot of usefull internal
 functions already implemented, FileMD5 or ParseURL are two examples of
 functions I was about to do myself that I found inside ICS.
 
 regards.
 
 AG Dod wrote:
 Next  time i'll see Bill Gates, I'll ask him to implement some
 Wininet IsLocalAddr function !
 
 AG Possibly usefull: ICS v6 function WSocket2IsAddrInSubNet in
 OverbyteIcsWinsock2.pas? 
 
 AG --
 AG Arno Garrels [TeamICS]
 AG http://www.overbyte.be/eng/overbyte/teamics.html
 
 
 
 
 regards.
 
 
 
 OK  thanks  i'll look at it. My need is very basic as it is only
 to be sure to download a file from specific URL, so no script
 envolved. 
 
 ML A script could be involved if Automatic detect settings is
 set, and is ML involved if Use automatic configuration script is
 set. 
 
 I  think it can be done with regexp (or basic '*' masked string
 search routine) on exception list, getting all IP attached to
 network card(s) (with  netmask) and excluding proxy if IP is
 inside any of the mask of the IP(s).
 
 ML This could work for local addresses.
 ML But if you have more than one interface (real NIC, emulated NIC
 or dial-up) the ML problem is that you should detect which
 interface will be used to reach a ML specific IP, since each dial-
 up has it own proxy settings while there are only ML one for the
 LAN. 
 
 ML I never had this situation so I delayed to solve it :-)
 
 
 ML Bye, Maurizio.
 
 ML 
 ML This mail has been sent using Alpikom webmail system
 ML http://www.alpikom.it


-- 
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


  1   2   >