[twsocket] UDP SendTo

2006-08-23 Thread Arno Garrels
Hello,

I would like to send datagrams thru SendTo() instead of
Send() in order to bypass copying data to TWSocket's send
buffer. When I call SendTo() I have to handle
possible errors by myself, but I do not understand
exactely whether it's possible that the function returns
a positive result smaller than Len.

The online help says:

If no error occurs, sendto returns the total number of bytes
sent, which can be less than the number indicated by len.

OK, but a little bit later:

For message-oriented sockets, care must be taken not to exceed
the maximum packet size of the underlying subnets, which can
be obtained by using getsockopt to retrieve the value of
socket option SO_MAX_MSG_SIZE. If the data is too long to pass
atomically through the underlying protocol, the error
WSAEMSGSIZE is returned and no data is transmitted.

Does this mean that in UDP either any number of bytes is sent
or WSAEMSGSIZE is returned?


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

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


[twsocket] Mime Decode Demo

2006-08-23 Thread Patrick Wong
Hi all,

I would like to add MIME decoding capability into my pop3 mail client.  The 
overbyte web page mentions that there is a MimeDemo app that instructs how to 
use the TMimeDecode component.  However I could not find C++ samples in the 
installed directory of ICS, only in Delphi.  I am using BCB6 and do not have 
Delphi to play with.

Are there any MIME demo in C++ available?

Many thx.-- 
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] Mime Decode Demo

2006-08-23 Thread Fastream Technologies
Hello Francois,

I think we should build BCB projects with Pascal DFMs to cover such inquries 
because not all of the Delphi code is converted to C++ and this would be an 
intermediate solution. When I joined this mailing list in 1999, I did not 
know Delphi but only C/C++ but they are very similar and it is not much 
diffucult to learn.

Best Regards,

SubZero

- Original Message - 
From: Patrick Wong [EMAIL PROTECTED]
To: twsocket@elists.org
Sent: Wednesday, August 23, 2006 1:57 PM
Subject: [twsocket] Mime Decode Demo


Hi all,

I would like to add MIME decoding capability into my pop3 mail client.  The 
overbyte web page mentions that there is a MimeDemo app that instructs how 
to use the TMimeDecode component.  However I could not find C++ samples in 
the installed directory of ICS, only in Delphi.  I am using BCB6 and do not 
have Delphi to play with.

Are there any MIME demo in C++ available?

Many thx.





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

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


[twsocket] HTTPS forward proxy server

2006-08-23 Thread Fastream Technologies
Hello,

I wonder how forward proxy servers other than BlueCoat.com (there was a 
discussion about them before) read the SSL'ed Host address to forward the 
request to that IP/Port. Is there a special RFC for HTTPS proxies?

Best Regards,

SubZero 

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

2006-08-23 Thread Arno Garrels
Hello,

This UDP stuff is driving me nuts.
Maximum outbound (send) size of a message returned by getsockopt
as described below is 65507 bytes on my w2k box. Up to this size
datagrams go over the wire. However if I SendTo a bigger datagram
up to 65527 bytes then SendTo happily returns success even though
nothing was sent! At a datagram size of 65528 bytes however the
function fails with WSAGetLastError returning WSAEMSGSIZE as
stated in the M$ documentation, is this normal? 

Also, when I set the IP_DONTFRAGMENT flag before sending a datagram
that would have being fragmented otherwise SendTo also happily
returns success even though no data was sent.

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



Arno Garrels wrote:
 Hello,
 
 I would like to send datagrams thru SendTo() instead of
 Send() in order to bypass copying data to TWSocket's send
 buffer. When I call SendTo() I have to handle
 possible errors by myself, but I do not understand
 exactely whether it's possible that the function returns
 a positive result smaller than Len.
 
 The online help says:
 
 If no error occurs, sendto returns the total number of bytes
 sent, which can be less than the number indicated by len.
 
 OK, but a little bit later:
 
 For message-oriented sockets, care must be taken not to exceed
 the maximum packet size of the underlying subnets, which can
 be obtained by using getsockopt to retrieve the value of
 socket option SO_MAX_MSG_SIZE. If the data is too long to pass
 atomically through the underlying protocol, the error
 WSAEMSGSIZE is returned and no data is transmitted.
 
 Does this mean that in UDP either any number of bytes is sent
 or WSAEMSGSIZE is returned?
 
 
 ---
 Arno Garrels [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
-- 
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] HTTPS forward proxy server

2006-08-23 Thread Arno Garrels
Fastream Technologies wrote:
 Hello,
 
 I wonder how forward proxy servers other than BlueCoat.com (there was
 a discussion about them before) read the SSL'ed Host address to
 forward the request to that IP/Port. Is there a special RFC for HTTPS
 proxies?

If you do not mean a SSL filtering proxy like BlueCoat the proxy just
tunnels the SSL traffic, see GpHttpProxy made with ICS, and THttpCli. 

---
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
 
 
 Best Regards,
 
 SubZero
-- 
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] HTTPS forward proxy server

2006-08-23 Thread Fastream Technologies
Yes I know BUT how does it know the destination IP/port of the web server if 
the

GET http://www.micro$oft.com/index.php ( :) )

is encrypted??

Thanks for the answer,

SZ

- Original Message - 
From: Arno Garrels [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Wednesday, August 23, 2006 4:19 PM
Subject: Re: [twsocket] HTTPS forward proxy server


: Fastream Technologies wrote:
:  Hello,
: 
:  I wonder how forward proxy servers other than BlueCoat.com (there was
:  a discussion about them before) read the SSL'ed Host address to
:  forward the request to that IP/Port. Is there a special RFC for HTTPS
:  proxies?
:
: If you do not mean a SSL filtering proxy like BlueCoat the proxy just
: tunnels the SSL traffic, see GpHttpProxy made with ICS, and THttpCli.
:
: ---
: Arno Garrels [TeamICS]
: http://www.overbyte.be/eng/overbyte/teamics.html
:
: 
:  Best Regards,
: 
:  SubZero
: -- 
: 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 

-- 
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] HTTPS forward proxy server

2006-08-23 Thread Arno Garrels
Fastream Technologies wrote:
 Yes I know BUT how does it know the destination IP/port of the web
 server if the
 
 GET http://www.micro$oft.com/index.php ( :) )
 
 is encrypted??

It cannot know that, there is a method CONNECT.
The HTTP CONNECT method is described in an IETF Internet-Draft written by Ari 
Luotonen
http://www.web-cache.com/Writings/Internet-Drafts/draft-luotonen-web-proxy-tunneling-01.txt
This draft probably is expired, search google for updates. 
Once a client is authenticated, any traffic is just tunneled like it is done in 
Wilfried's socketspy.
A real proxy component is GpHttpProxy. 

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


 
 Thanks for the answer,
 
 SZ
 
 - Original Message -
 From: Arno Garrels [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Wednesday, August 23, 2006 4:19 PM
 Subject: Re: [twsocket] HTTPS forward proxy server
 
 
 Fastream Technologies wrote:
 Hello,
 
 I wonder how forward proxy servers other than BlueCoat.com (there
 was a discussion about them before) read the SSL'ed Host address to
 forward the request to that IP/Port. Is there a special RFC for
 HTTPS proxies?
 
 If you do not mean a SSL filtering proxy like BlueCoat the proxy just
 tunnels the SSL traffic, see GpHttpProxy made with ICS, and THttpCli.
 
 ---
 Arno Garrels [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 
 
 Best Regards,
 
 SubZero
 --
 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
-- 
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


[twsocket] Using a Cookie in Http(s)Tst

2006-08-23 Thread Stadin, Benjamin
Hi all,

in the HttpTst demo I navigate to www.google.com. The output message shows

Cookie:
PREF=ID=64cd0e5f00d7a853:TM=1156389632:LM=1156389632:S=a7g_61J9fju4o_-X;
expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.de
Set-Cookie:
PREF=ID=64cd0e5f00d7a853:TM=1156389632:LM=1156389632:S=a7g_61J9fju4o_-X;
expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.de


But when I add a button to the form and check for SslHttpCli1.Cookie, it is
empty. Am I missing something?
What I want to do in the application is to change 1 value and use the cookie
to save the setting permanently.

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