Re: [twsocket] C++ Builder 2009 TCP Server

2008-10-20 Thread Arno Garrels
Fastream Technologies wrote:
>> In the custom client class RcvdLine is declared as AnsiString.
>> Concatenation of UnicodeString and AnsiString seems to be the
>> problem. Declare RcvdLine as String and this error should go away.
>> 
>> --
>> 
> I wonder if using UnicodeString for such a low level property would
> cause slowness??

In Delphi 2009 the default string "String" changed from AnsiString
to UnicodeString. Entire VCL and RTL is Unicode as well, so in order
to avoid too many string conversions it's fast to convert to Unicode
once and do all string operations in Unicode. Note that in 2009 the
W-API is called which are faster since Windows does not convert the
AnsiString back and forth to Unicode internally.

--
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] ICS group on Linked-In

2008-10-20 Thread Francois PIETTE
Hi !

Every ICS user is invited to be part of ICS-group on Linked-In. See 
http://www.linkedin.com/e/gis/136245
Why ? Just to have a little bit more visibility for everyone of us and for 
ICS.

btw: You may also be part of "Powered by Delphi" group on Linked-In. 
http://www.linkedin.com/e/gis/48600

--
[EMAIL PROTECTED]
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


Re: [twsocket] C++ Builder 2009 TCP Server

2008-10-20 Thread João Gonçalves
Thanks for the help 
I will try to debug the problem, but seems hard though!
João

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome
de Arno Garrels
Enviada: segunda-feira, 20 de Outubro de 2008 16:04
Para: ICS support mailing
Assunto: Re: [twsocket] C++ Builder 2009 TCP Server

João Gonçalves wrote:
> Hello,
> That fixed the problem of the linker. However when I run the
> application and try to connect a client, the following error appears:
> Access violation at address F88BFC55. Read address F88FC55.

No idea, I got it working as described below (zero CB-experience). 
Can't you set a break point in ClientDataAvailable and step thru 
the source code?

--
Arno Garrels

> I'm working with the same example of TcpSrv used in icsv5, that worked
> perfectly in C++ Builder 2007.
> Thank you for the help
> João
> -Mensagem original-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Em nome de Arno Garrels
> Enviada: segunda-feira, 20 de Outubro de 2008 14:56
> Para: ICS support mailing
> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
> 
> João Gonçalves wrote:
>> Hello,
>> After removing the "const" from the functions' prototypes, doesn't
>> gives any compiler errors, but the linker errors still persists. Here
>> is the error that gives:
>> [ILINK32 Error] Error: Unresolved external '__fastcall
>> Overbyteicswsocket::TCustomWSocket::SendTo(sockaddr_in&, int, void *
>> const, int)' referenced from ...TCPSRV1.OBJ
> 
> In OverbyteIcsWSocket.pas, in both Interface and Implementation
> section of the unit, replace (TCustomWSocket) SendTo by:
> 
> function SendTo(
> Dest   : TSockAddr;
> DestLen: Integer;
> {$IFDEF CLR} const {$ENDIF} Data : TWSocketData;
> Len: Integer) : Integer;
> 
> function TCustomWSocket.SendTo(
> Dest   : TSockAddr;
> DestLen: Integer;
> {$IFDEF CLR} const {$ENDIF} Data : TWSocketData;
> Len: Integer) : Integer;
> 
> You need to save and rebuild all afterwards.
> It works for me, however TCPSRV demo starts and immediately
> exits silently ??
> 
>> [ILINK32 Error] Error: Unresolved external '__fastcall
>> Overbyteicswsocket::TCustomWSocket::SendStr(System::UnicodeString,
>> unsigned int)' referenced from ...TCPSRV1.OBJ
>> [ILINK32 Error] Error: Unresolved external '__fastcall
>> Overbyteicswsocket::TCustomWSocket::SendStr(System::UnicodeString)'
>> referenced from ...TCPSRV1.OBJ
> 
> In the custom client class RcvdLine is declared as AnsiString.
> Concatenation of UnicodeString and AnsiString seems to be the problem.
> Declare RcvdLine as String and this error should go away.
> 
> --
> Arno Garrels
> 
>> 
>> -Mensagem original-
>> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Em nome de João Gonçalves
>> Enviada: segunda-feira, 20 de Outubro de 2008 12:31
>> Para: 'ICS support mailing'
>> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
>> 
>> I will give it a try,
>> Thanks
>> 
>> 
>> -Mensagem original-
>> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Em nome de Fastream Technologies
>> Enviada: segunda-feira, 20 de Outubro de 2008 12:26
>> Para: ICS support mailing
>> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
>> 
>> Remove the "const" in the pascal source for the params of the
>> functions it reports.
>> 
>> On Mon, Oct 20, 2008 at 2:04 PM, João Gonçalves
>> <[EMAIL PROTECTED]>wrote:
>> 
>>> Hello, thank you for your answers,
>>> I'm using ICS v7.0 with the example TCPSRV from v5.
>>> In fact I have errors in the Send function, if I comment this part
>>> of the code, I get this linker error:
>>> [ILINK32 Error] Error: Unresolved external '__fastcall
>>> Overbyteicswsocket::TCustomWSocket::SendTo(const sockaddr_in&, int,
>>> void * const, int)' referenced from
>>> D:\DOCUMENTOS\DESENVOLVIMENTO\PROJECTOS\05908\03 -
>>> DESENVOLVIMENTO\03 -
>>> INFORMÁTICA\MYSERVER\CPP\INTERNET\BCB2006THREADS2\DEBUG\TCPSRV1.OBJ
>>> 
>>> Regards
>>> João
>>> 
>>> 
>>> -Mensagem original-
>>> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>>> Em nome
>>> de Fastream Technologies
>>> Enviada: segunda-feira, 20 de Outubro de 2008 11:39
>>> Para: ICS support mailing
>>> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
>>> 
>>> I have seen linker errors in ICSv6 with BCB2007 in TWSocket.Send().
>>> Have they been fixed (the "const" should have been removed). Maybe
>>> that's the cause..?
>>> 
>>> Regards,
>>> 
>>> SZ
>>> 
>>> On Mon, Oct 20, 2008 at 1:16 PM, Arno Garrels <[EMAIL PROTECTED]>
>>> wrote:
>>> 
 João Gonçalves wrote:
> Hello,
> I currently working with C++ Builder 2009, and I'm trying to
> upgrade my TCP server (based on the ICS TCPSRV demo) for this
> version, but I'm getting several inconsistency and linker errors.
> Can anyone give me a little help, on this?
 
 AFAIK, ICS for C++ Builder 2009 is completely untested, there is a
 CB package included which builds w/o errors, that's all.
 Please provide the 

Re: [twsocket] FTPS server with special need

2008-10-20 Thread Francois Piette
> this is my client need, he want private FTPS server so only customer that
> have the client program can access his server, and block all public ftp
> client, the project is about remote updating  application using FTPS
server
> and client part is component that I will code to add to another
application
> so it get update from server, so it don't need the server send PK, the
idea
> is that the client send the one coded inside to the server after the hello
> negotiation so the server valid only his trusted client and denied all
> public ftp client.

To complement/summarize Arno and Angus answers, I would implement your
requiredments either by:
1) Using a client certificate, which is already implemented in SSL.
2) Adding a simple custom command which would be mandatory for user to use.
Commercial FTPS client will not implement that command and would have
difficulties in executing it.

The passphrase associated with the certificate could be hardcoded in your
application.
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
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] C++ Builder 2009 TCP Server

2008-10-20 Thread Arno Garrels
João Gonçalves wrote:
> Hello,
> That fixed the problem of the linker. However when I run the
> application and try to connect a client, the following error appears:
> Access violation at address F88BFC55. Read address F88FC55.

No idea, I got it working as described below (zero CB-experience). 
Can't you set a break point in ClientDataAvailable and step thru 
the source code?

--
Arno Garrels

> I'm working with the same example of TcpSrv used in icsv5, that worked
> perfectly in C++ Builder 2007.
> Thank you for the help
> João
> -Mensagem original-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Em nome de Arno Garrels
> Enviada: segunda-feira, 20 de Outubro de 2008 14:56
> Para: ICS support mailing
> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
> 
> João Gonçalves wrote:
>> Hello,
>> After removing the "const" from the functions' prototypes, doesn't
>> gives any compiler errors, but the linker errors still persists. Here
>> is the error that gives:
>> [ILINK32 Error] Error: Unresolved external '__fastcall
>> Overbyteicswsocket::TCustomWSocket::SendTo(sockaddr_in&, int, void *
>> const, int)' referenced from ...TCPSRV1.OBJ
> 
> In OverbyteIcsWSocket.pas, in both Interface and Implementation
> section of the unit, replace (TCustomWSocket) SendTo by:
> 
> function SendTo(
> Dest   : TSockAddr;
> DestLen: Integer;
> {$IFDEF CLR} const {$ENDIF} Data : TWSocketData;
> Len: Integer) : Integer;
> 
> function TCustomWSocket.SendTo(
> Dest   : TSockAddr;
> DestLen: Integer;
> {$IFDEF CLR} const {$ENDIF} Data : TWSocketData;
> Len: Integer) : Integer;
> 
> You need to save and rebuild all afterwards.
> It works for me, however TCPSRV demo starts and immediately
> exits silently ??
> 
>> [ILINK32 Error] Error: Unresolved external '__fastcall
>> Overbyteicswsocket::TCustomWSocket::SendStr(System::UnicodeString,
>> unsigned int)' referenced from ...TCPSRV1.OBJ
>> [ILINK32 Error] Error: Unresolved external '__fastcall
>> Overbyteicswsocket::TCustomWSocket::SendStr(System::UnicodeString)'
>> referenced from ...TCPSRV1.OBJ
> 
> In the custom client class RcvdLine is declared as AnsiString.
> Concatenation of UnicodeString and AnsiString seems to be the problem.
> Declare RcvdLine as String and this error should go away.
> 
> --
> Arno Garrels
> 
>> 
>> -Mensagem original-
>> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Em nome de João Gonçalves
>> Enviada: segunda-feira, 20 de Outubro de 2008 12:31
>> Para: 'ICS support mailing'
>> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
>> 
>> I will give it a try,
>> Thanks
>> 
>> 
>> -Mensagem original-
>> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Em nome de Fastream Technologies
>> Enviada: segunda-feira, 20 de Outubro de 2008 12:26
>> Para: ICS support mailing
>> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
>> 
>> Remove the "const" in the pascal source for the params of the
>> functions it reports.
>> 
>> On Mon, Oct 20, 2008 at 2:04 PM, João Gonçalves
>> <[EMAIL PROTECTED]>wrote:
>> 
>>> Hello, thank you for your answers,
>>> I'm using ICS v7.0 with the example TCPSRV from v5.
>>> In fact I have errors in the Send function, if I comment this part
>>> of the code, I get this linker error:
>>> [ILINK32 Error] Error: Unresolved external '__fastcall
>>> Overbyteicswsocket::TCustomWSocket::SendTo(const sockaddr_in&, int,
>>> void * const, int)' referenced from
>>> D:\DOCUMENTOS\DESENVOLVIMENTO\PROJECTOS\05908\03 -
>>> DESENVOLVIMENTO\03 -
>>> INFORMÁTICA\MYSERVER\CPP\INTERNET\BCB2006THREADS2\DEBUG\TCPSRV1.OBJ
>>> 
>>> Regards
>>> João
>>> 
>>> 
>>> -Mensagem original-
>>> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>>> Em nome
>>> de Fastream Technologies
>>> Enviada: segunda-feira, 20 de Outubro de 2008 11:39
>>> Para: ICS support mailing
>>> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
>>> 
>>> I have seen linker errors in ICSv6 with BCB2007 in TWSocket.Send().
>>> Have they been fixed (the "const" should have been removed). Maybe
>>> that's the cause..?
>>> 
>>> Regards,
>>> 
>>> SZ
>>> 
>>> On Mon, Oct 20, 2008 at 1:16 PM, Arno Garrels <[EMAIL PROTECTED]>
>>> wrote:
>>> 
 João Gonçalves wrote:
> Hello,
> I currently working with C++ Builder 2009, and I'm trying to
> upgrade my TCP server (based on the ICS TCPSRV demo) for this
> version, but I'm getting several inconsistency and linker errors.
> Can anyone give me a little help, on this?
 
 AFAIK, ICS for C++ Builder 2009 is completely untested, there is a
 CB package included which builds w/o errors, that's all.
 Please provide the linker error text, also a minimal project that
 demonstrates the errors would be very helpful.
 
 --
 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
>>>

Re: [twsocket] C++ Builder 2009 TCP Server

2008-10-20 Thread João Gonçalves
Hello,
That fixed the problem of the linker. However when I run the application and
try to connect a client, the following error appears:
Access violation at address F88BFC55. Read address F88FC55.
I'm working with the same example of TcpSrv used in icsv5, that worked
perfectly in C++ Builder 2007.
Thank you for the help
João
-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome
de Arno Garrels
Enviada: segunda-feira, 20 de Outubro de 2008 14:56
Para: ICS support mailing
Assunto: Re: [twsocket] C++ Builder 2009 TCP Server

João Gonçalves wrote:
> Hello,
> After removing the "const" from the functions' prototypes, doesn't
> gives any compiler errors, but the linker errors still persists. Here
> is the error that gives:
> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendTo(sockaddr_in&, int, void *
> const, int)' referenced from ...TCPSRV1.OBJ

In OverbyteIcsWSocket.pas, in both Interface and Implementation section of
the unit, replace (TCustomWSocket) SendTo by:

function SendTo(
Dest   : TSockAddr;
DestLen: Integer;
{$IFDEF CLR} const {$ENDIF} Data : TWSocketData;
Len: Integer) : Integer;

function TCustomWSocket.SendTo(
Dest   : TSockAddr;
DestLen: Integer;
{$IFDEF CLR} const {$ENDIF} Data : TWSocketData;
Len: Integer) : Integer;

You need to save and rebuild all afterwards.
It works for me, however TCPSRV demo starts and immediately
exits silently ??

> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendStr(System::UnicodeString,
> unsigned int)' referenced from ...TCPSRV1.OBJ
> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendStr(System::UnicodeString)'
> referenced from ...TCPSRV1.OBJ

In the custom client class RcvdLine is declared as AnsiString.
Concatenation of UnicodeString and AnsiString seems to be the problem.
Declare RcvdLine as String and this error should go away. 

--
Arno Garrels

> 
> -Mensagem original-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Em nome de João Gonçalves
> Enviada: segunda-feira, 20 de Outubro de 2008 12:31
> Para: 'ICS support mailing'
> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
> 
> I will give it a try,
> Thanks
> 
> 
> -Mensagem original-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Em nome de Fastream Technologies
> Enviada: segunda-feira, 20 de Outubro de 2008 12:26
> Para: ICS support mailing
> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
> 
> Remove the "const" in the pascal source for the params of the
> functions it reports.
> 
> On Mon, Oct 20, 2008 at 2:04 PM, João Gonçalves
> <[EMAIL PROTECTED]>wrote:
> 
>> Hello, thank you for your answers,
>> I'm using ICS v7.0 with the example TCPSRV from v5.
>> In fact I have errors in the Send function, if I comment this part
>> of the code, I get this linker error:
>> [ILINK32 Error] Error: Unresolved external '__fastcall
>> Overbyteicswsocket::TCustomWSocket::SendTo(const sockaddr_in&, int,
>> void * const, int)' referenced from
>> D:\DOCUMENTOS\DESENVOLVIMENTO\PROJECTOS\05908\03 -
>> DESENVOLVIMENTO\03 -
>> INFORMÁTICA\MYSERVER\CPP\INTERNET\BCB2006THREADS2\DEBUG\TCPSRV1.OBJ 
>> 
>> Regards
>> João
>> 
>> 
>> -Mensagem original-
>> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Em nome
>> de Fastream Technologies
>> Enviada: segunda-feira, 20 de Outubro de 2008 11:39
>> Para: ICS support mailing
>> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
>> 
>> I have seen linker errors in ICSv6 with BCB2007 in TWSocket.Send().
>> Have they been fixed (the "const" should have been removed). Maybe
>> that's the cause..?
>> 
>> Regards,
>> 
>> SZ
>> 
>> On Mon, Oct 20, 2008 at 1:16 PM, Arno Garrels <[EMAIL PROTECTED]>
>> wrote: 
>> 
>>> João Gonçalves wrote:
 Hello,
 I currently working with C++ Builder 2009, and I'm trying to
 upgrade my TCP server (based on the ICS TCPSRV demo) for this
 version, but I'm getting several inconsistency and linker errors.
 Can anyone give me a little help, on this?
>>> 
>>> AFAIK, ICS for C++ Builder 2009 is completely untested, there is a
>>> CB package included which builds w/o errors, that's all.
>>> Please provide the linker error text, also a minimal project that
>>> demonstrates the errors would be very helpful.
>>> 
>>> --
>>> 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
>> 
>> --
>> 
> --
> 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/listi

Re: [twsocket] C++ Builder 2009 TCP Server

2008-10-20 Thread Arno Garrels
João Gonçalves wrote:
> Hello,
> After removing the "const" from the functions' prototypes, doesn't
> gives any compiler errors, but the linker errors still persists. Here
> is the error that gives:
> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendTo(sockaddr_in&, int, void *
> const, int)' referenced from ...TCPSRV1.OBJ

In OverbyteIcsWSocket.pas, in both Interface and Implementation section of
the unit, replace (TCustomWSocket) SendTo by:

function SendTo(
Dest   : TSockAddr;
DestLen: Integer;
{$IFDEF CLR} const {$ENDIF} Data : TWSocketData;
Len: Integer) : Integer;

function TCustomWSocket.SendTo(
Dest   : TSockAddr;
DestLen: Integer;
{$IFDEF CLR} const {$ENDIF} Data : TWSocketData;
Len: Integer) : Integer;

You need to save and rebuild all afterwards.
It works for me, however TCPSRV demo starts and immediately
exits silently ??

> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendStr(System::UnicodeString,
> unsigned int)' referenced from ...TCPSRV1.OBJ
> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendStr(System::UnicodeString)'
> referenced from ...TCPSRV1.OBJ

In the custom client class RcvdLine is declared as AnsiString.
Concatenation of UnicodeString and AnsiString seems to be the problem.
Declare RcvdLine as String and this error should go away. 

--
Arno Garrels

> 
> -Mensagem original-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Em nome de João Gonçalves
> Enviada: segunda-feira, 20 de Outubro de 2008 12:31
> Para: 'ICS support mailing'
> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
> 
> I will give it a try,
> Thanks
> 
> 
> -Mensagem original-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Em nome de Fastream Technologies
> Enviada: segunda-feira, 20 de Outubro de 2008 12:26
> Para: ICS support mailing
> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
> 
> Remove the "const" in the pascal source for the params of the
> functions it reports.
> 
> On Mon, Oct 20, 2008 at 2:04 PM, João Gonçalves
> <[EMAIL PROTECTED]>wrote:
> 
>> Hello, thank you for your answers,
>> I'm using ICS v7.0 with the example TCPSRV from v5.
>> In fact I have errors in the Send function, if I comment this part
>> of the code, I get this linker error:
>> [ILINK32 Error] Error: Unresolved external '__fastcall
>> Overbyteicswsocket::TCustomWSocket::SendTo(const sockaddr_in&, int,
>> void * const, int)' referenced from
>> D:\DOCUMENTOS\DESENVOLVIMENTO\PROJECTOS\05908\03 -
>> DESENVOLVIMENTO\03 -
>> INFORMÁTICA\MYSERVER\CPP\INTERNET\BCB2006THREADS2\DEBUG\TCPSRV1.OBJ 
>> 
>> Regards
>> João
>> 
>> 
>> -Mensagem original-
>> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Em nome
>> de Fastream Technologies
>> Enviada: segunda-feira, 20 de Outubro de 2008 11:39
>> Para: ICS support mailing
>> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
>> 
>> I have seen linker errors in ICSv6 with BCB2007 in TWSocket.Send().
>> Have they been fixed (the "const" should have been removed). Maybe
>> that's the cause..?
>> 
>> Regards,
>> 
>> SZ
>> 
>> On Mon, Oct 20, 2008 at 1:16 PM, Arno Garrels <[EMAIL PROTECTED]>
>> wrote: 
>> 
>>> João Gonçalves wrote:
 Hello,
 I currently working with C++ Builder 2009, and I'm trying to
 upgrade my TCP server (based on the ICS TCPSRV demo) for this
 version, but I'm getting several inconsistency and linker errors.
 Can anyone give me a little help, on this?
>>> 
>>> AFAIK, ICS for C++ Builder 2009 is completely untested, there is a
>>> CB package included which builds w/o errors, that's all.
>>> Please provide the linker error text, also a minimal project that
>>> demonstrates the errors would be very helpful.
>>> 
>>> --
>>> 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
>> 
>> --
>> 
> --
> 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
-- 
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] C++ Builder 2009 TCP Server

2008-10-20 Thread Fastream Technologies
>
> In the custom client class RcvdLine is declared as AnsiString.
> Concatenation of UnicodeString and AnsiString seems to be the problem.
> Declare RcvdLine as String and this error should go away.
>
> --
>
I wonder if using UnicodeString for such a low level property would cause
slowness??
-- 
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] C++ Builder 2009 TCP Server

2008-10-20 Thread João Gonçalves
Hello,
Thank you for your help
Yes I did, but the linker error maintains 

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome
de Fastream Technologies
Enviada: segunda-feira, 20 de Outubro de 2008 14:51
Para: ICS support mailing
Assunto: Re: [twsocket] C++ Builder 2009 TCP Server

Hi,

Did you delete the obj files before recompilation?

Regards,

SZ

On Mon, Oct 20, 2008 at 4:37 PM, João Gonçalves
<[EMAIL PROTECTED]>wrote:

> Hello,
> After removing the "const" from the functions' prototypes, doesn't gives
> any
> compiler errors, but the linker errors still persists. Here is the error
> that gives:
> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendTo(sockaddr_in&, int, void *
const,
> int)' referenced from ...TCPSRV1.OBJ
> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendStr(System::UnicodeString,
unsigned
> int)' referenced from ...TCPSRV1.OBJ
> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendStr(System::UnicodeString)'
> referenced from ...TCPSRV1.OBJ
>
> -Mensagem original-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em
> nome
> de João Gonçalves
> Enviada: segunda-feira, 20 de Outubro de 2008 12:31
>  Para: 'ICS support mailing'
> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
>
> I will give it a try,
> Thanks
>
>
> -Mensagem original-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em
> nome
> de Fastream Technologies
> Enviada: segunda-feira, 20 de Outubro de 2008 12:26
> Para: ICS support mailing
> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
>
> Remove the "const" in the pascal source for the params of the functions it
> reports.
>
> On Mon, Oct 20, 2008 at 2:04 PM, João Gonçalves
> <[EMAIL PROTECTED]>wrote:
>
> > Hello, thank you for your answers,
> > I'm using ICS v7.0 with the example TCPSRV from v5.
> > In fact I have errors in the Send function, if I comment this part of
the
> > code, I get this linker error:
> > [ILINK32 Error] Error: Unresolved external '__fastcall
> > Overbyteicswsocket::TCustomWSocket::SendTo(const sockaddr_in&, int, void
> *
> > const, int)' referenced from
> > D:\DOCUMENTOS\DESENVOLVIMENTO\PROJECTOS\05908\03 - DESENVOLVIMENTO\03 -
> > INFORMÁTICA\MYSERVER\CPP\INTERNET\BCB2006THREADS2\DEBUG\TCPSRV1.OBJ
> >
> > Regards
> > João
> >
> >
> > -Mensagem original-
> > De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em
> > nome
> > de Fastream Technologies
> > Enviada: segunda-feira, 20 de Outubro de 2008 11:39
> > Para: ICS support mailing
> > Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
> >
> > I have seen linker errors in ICSv6 with BCB2007 in TWSocket.Send(). Have
> > they been fixed (the "const" should have been removed). Maybe that's the
> > cause..?
> >
> > Regards,
> >
> > SZ
> >
> > On Mon, Oct 20, 2008 at 1:16 PM, Arno Garrels <[EMAIL PROTECTED]>
> wrote:
> >
> > > João Gonçalves wrote:
> > > > Hello,
> > > > I currently working with C++ Builder 2009, and I'm trying to upgrade
> > > > my TCP server (based on the ICS TCPSRV demo) for this version, but
> > > > I'm getting several inconsistency and linker errors.
> > > > Can anyone give me a little help, on this?
> > >
> > > AFAIK, ICS for C++ Builder 2009 is completely untested, there is a CB
> > > package included which builds w/o errors, that's all.
> > > Please provide the linker error text, also a minimal project that
> > > demonstrates the errors would be very helpful.
> > >
> > > --
> > > 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
> >
> > --
> >
> --
> 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
>
> --
>
-- 
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] C++ Builder 2009 TCP Server

2008-10-20 Thread Fastream Technologies
Hi,

Did you delete the obj files before recompilation?

Regards,

SZ

On Mon, Oct 20, 2008 at 4:37 PM, João Gonçalves
<[EMAIL PROTECTED]>wrote:

> Hello,
> After removing the "const" from the functions' prototypes, doesn't gives
> any
> compiler errors, but the linker errors still persists. Here is the error
> that gives:
> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendTo(sockaddr_in&, int, void * const,
> int)' referenced from ...TCPSRV1.OBJ
> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendStr(System::UnicodeString, unsigned
> int)' referenced from ...TCPSRV1.OBJ
> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendStr(System::UnicodeString)'
> referenced from ...TCPSRV1.OBJ
>
> -Mensagem original-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em
> nome
> de João Gonçalves
> Enviada: segunda-feira, 20 de Outubro de 2008 12:31
>  Para: 'ICS support mailing'
> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
>
> I will give it a try,
> Thanks
>
>
> -Mensagem original-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em
> nome
> de Fastream Technologies
> Enviada: segunda-feira, 20 de Outubro de 2008 12:26
> Para: ICS support mailing
> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
>
> Remove the "const" in the pascal source for the params of the functions it
> reports.
>
> On Mon, Oct 20, 2008 at 2:04 PM, João Gonçalves
> <[EMAIL PROTECTED]>wrote:
>
> > Hello, thank you for your answers,
> > I'm using ICS v7.0 with the example TCPSRV from v5.
> > In fact I have errors in the Send function, if I comment this part of the
> > code, I get this linker error:
> > [ILINK32 Error] Error: Unresolved external '__fastcall
> > Overbyteicswsocket::TCustomWSocket::SendTo(const sockaddr_in&, int, void
> *
> > const, int)' referenced from
> > D:\DOCUMENTOS\DESENVOLVIMENTO\PROJECTOS\05908\03 - DESENVOLVIMENTO\03 -
> > INFORMÁTICA\MYSERVER\CPP\INTERNET\BCB2006THREADS2\DEBUG\TCPSRV1.OBJ
> >
> > Regards
> > João
> >
> >
> > -Mensagem original-
> > De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em
> > nome
> > de Fastream Technologies
> > Enviada: segunda-feira, 20 de Outubro de 2008 11:39
> > Para: ICS support mailing
> > Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
> >
> > I have seen linker errors in ICSv6 with BCB2007 in TWSocket.Send(). Have
> > they been fixed (the "const" should have been removed). Maybe that's the
> > cause..?
> >
> > Regards,
> >
> > SZ
> >
> > On Mon, Oct 20, 2008 at 1:16 PM, Arno Garrels <[EMAIL PROTECTED]>
> wrote:
> >
> > > João Gonçalves wrote:
> > > > Hello,
> > > > I currently working with C++ Builder 2009, and I'm trying to upgrade
> > > > my TCP server (based on the ICS TCPSRV demo) for this version, but
> > > > I'm getting several inconsistency and linker errors.
> > > > Can anyone give me a little help, on this?
> > >
> > > AFAIK, ICS for C++ Builder 2009 is completely untested, there is a CB
> > > package included which builds w/o errors, that's all.
> > > Please provide the linker error text, also a minimal project that
> > > demonstrates the errors would be very helpful.
> > >
> > > --
> > > 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
> >
> > --
> >
> --
> 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
>
> --
>
-- 
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] C++ Builder 2009 TCP Server

2008-10-20 Thread João Gonçalves
Hello,
After removing the "const" from the functions' prototypes, doesn't gives any
compiler errors, but the linker errors still persists. Here is the error
that gives:
[ILINK32 Error] Error: Unresolved external '__fastcall
Overbyteicswsocket::TCustomWSocket::SendTo(sockaddr_in&, int, void * const,
int)' referenced from ...TCPSRV1.OBJ
[ILINK32 Error] Error: Unresolved external '__fastcall
Overbyteicswsocket::TCustomWSocket::SendStr(System::UnicodeString, unsigned
int)' referenced from ...TCPSRV1.OBJ
[ILINK32 Error] Error: Unresolved external '__fastcall
Overbyteicswsocket::TCustomWSocket::SendStr(System::UnicodeString)'
referenced from ...TCPSRV1.OBJ

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome
de João Gonçalves
Enviada: segunda-feira, 20 de Outubro de 2008 12:31
Para: 'ICS support mailing'
Assunto: Re: [twsocket] C++ Builder 2009 TCP Server

I will give it a try,
Thanks


-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome
de Fastream Technologies
Enviada: segunda-feira, 20 de Outubro de 2008 12:26
Para: ICS support mailing
Assunto: Re: [twsocket] C++ Builder 2009 TCP Server

Remove the "const" in the pascal source for the params of the functions it
reports.

On Mon, Oct 20, 2008 at 2:04 PM, João Gonçalves
<[EMAIL PROTECTED]>wrote:

> Hello, thank you for your answers,
> I'm using ICS v7.0 with the example TCPSRV from v5.
> In fact I have errors in the Send function, if I comment this part of the
> code, I get this linker error:
> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendTo(const sockaddr_in&, int, void *
> const, int)' referenced from
> D:\DOCUMENTOS\DESENVOLVIMENTO\PROJECTOS\05908\03 - DESENVOLVIMENTO\03 -
> INFORMÁTICA\MYSERVER\CPP\INTERNET\BCB2006THREADS2\DEBUG\TCPSRV1.OBJ
>
> Regards
> João
>
>
> -Mensagem original-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em
> nome
> de Fastream Technologies
> Enviada: segunda-feira, 20 de Outubro de 2008 11:39
> Para: ICS support mailing
> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
>
> I have seen linker errors in ICSv6 with BCB2007 in TWSocket.Send(). Have
> they been fixed (the "const" should have been removed). Maybe that's the
> cause..?
>
> Regards,
>
> SZ
>
> On Mon, Oct 20, 2008 at 1:16 PM, Arno Garrels <[EMAIL PROTECTED]> wrote:
>
> > João Gonçalves wrote:
> > > Hello,
> > > I currently working with C++ Builder 2009, and I'm trying to upgrade
> > > my TCP server (based on the ICS TCPSRV demo) for this version, but
> > > I'm getting several inconsistency and linker errors.
> > > Can anyone give me a little help, on this?
> >
> > AFAIK, ICS for C++ Builder 2009 is completely untested, there is a CB
> > package included which builds w/o errors, that's all.
> > Please provide the linker error text, also a minimal project that
> > demonstrates the errors would be very helpful.
> >
> > --
> > 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
>
> --
>
-- 
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

-- 
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] FTPS server with special need

2008-10-20 Thread Angus Robertson - Magenta Systems Ltd
> this is my client need, he want private FTPS server so only 
> customer that have the client program can access his server, and 
> block all public ftp client, 

This can be done very simply in various ways.  For instance, you can have
the client encode a password including the time and date (UTC/GTM to
avoid time zone issues) and have the server reject the logon for a
mismatch.  The latest V6 FTP client and server even handle One Time
Password encoding for you.  

Or you can do something similar with the Client command after logging on,
and not accept any commands until a challenge has been passed. 

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] FTPS server with special need

2008-10-20 Thread Arno Garrels
mustdev at Bayn wrote:
> this is my client need, he want private FTPS server so only customer
> that have the client program can access his server, and block all
> public ftp client,

1) The server owner would issue client certificates to the clients.
   That's an easy task with OpenSSL.exe or XCA, a Windows GUI 
   application available at sourceforg.net (uses OpenSSL).
   The advantage of distributing unique client certificates is
   that they can include individual information about clients
   and that they can expire or being revoked. 
   A customer won't be able to update the application if his
   certificate expired or has been revoked.
   Giving all clients the same certificate that never expires
   is IMO nonsense. 

2) Clients connecting to the server should also check
   whether they can trust the server or not by checking 
   the server certificate.

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


> the project is about remote updating  application
> using FTPS server and client part is component that I will code to
> add to another application so it get update from server, so it don't
> need the server send PK, the idea is that the client send the one
> coded inside to the server after the hello negotiation so the server
> valid only his trusted client and denied all public ftp client.
> 
> --
> From: "Francois PIETTE" <[EMAIL PROTECTED]>
> Sent: Monday, October 20, 2008 5:51 AM
> To: "ICS support mailing" 
> Subject: Re: [twsocket] FTPS server with special need
> 
>>> I have project to code special FTPS server that don't need the
>>> server to send
>>> Public key to client but get this key from hard coded
>>> maybe in string or streaming inside client program and after the
>>> client is
>>> recognized like one trusted client then gave access to his directory
>>> 1) client connects using TCP/IP
>>> 2) Client says HELLO or whatever using public certificate without
>>> negotiating certificates with server
>>> 3) client authenticates using encrypted SSL, client send his
>>> internal certificate to server to be reconized
>>> any idea how I do this
>> 
>> You'd better design your own protocol instead of trying to tweak
>> FTPS. 
>> 
>> btw: What is the rationale behind your idea ? I don't understand
>> clearly the
>> benefits. And I see very well what could be the pitfall: the so
>> called "man
>> in the middle" attack.
>> 
>> --
>> [EMAIL PROTECTED]
>> 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] C++ Builder 2009 TCP Server

2008-10-20 Thread João Gonçalves
I will give it a try,
Thanks


-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome
de Fastream Technologies
Enviada: segunda-feira, 20 de Outubro de 2008 12:26
Para: ICS support mailing
Assunto: Re: [twsocket] C++ Builder 2009 TCP Server

Remove the "const" in the pascal source for the params of the functions it
reports.

On Mon, Oct 20, 2008 at 2:04 PM, João Gonçalves
<[EMAIL PROTECTED]>wrote:

> Hello, thank you for your answers,
> I'm using ICS v7.0 with the example TCPSRV from v5.
> In fact I have errors in the Send function, if I comment this part of the
> code, I get this linker error:
> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendTo(const sockaddr_in&, int, void *
> const, int)' referenced from
> D:\DOCUMENTOS\DESENVOLVIMENTO\PROJECTOS\05908\03 - DESENVOLVIMENTO\03 -
> INFORMÁTICA\MYSERVER\CPP\INTERNET\BCB2006THREADS2\DEBUG\TCPSRV1.OBJ
>
> Regards
> João
>
>
> -Mensagem original-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em
> nome
> de Fastream Technologies
> Enviada: segunda-feira, 20 de Outubro de 2008 11:39
> Para: ICS support mailing
> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
>
> I have seen linker errors in ICSv6 with BCB2007 in TWSocket.Send(). Have
> they been fixed (the "const" should have been removed). Maybe that's the
> cause..?
>
> Regards,
>
> SZ
>
> On Mon, Oct 20, 2008 at 1:16 PM, Arno Garrels <[EMAIL PROTECTED]> wrote:
>
> > João Gonçalves wrote:
> > > Hello,
> > > I currently working with C++ Builder 2009, and I'm trying to upgrade
> > > my TCP server (based on the ICS TCPSRV demo) for this version, but
> > > I'm getting several inconsistency and linker errors.
> > > Can anyone give me a little help, on this?
> >
> > AFAIK, ICS for C++ Builder 2009 is completely untested, there is a CB
> > package included which builds w/o errors, that's all.
> > Please provide the linker error text, also a minimal project that
> > demonstrates the errors would be very helpful.
> >
> > --
> > 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
>
> --
>
-- 
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] FTPS server with special need

2008-10-20 Thread mustdev at Bayn
this is my client need, he want private FTPS server so only customer that 
have the client program can access his server, and block all public ftp 
client, the project is about remote updating  application using FTPS server 
and client part is component that I will code to add to another application 
so it get update from server, so it don't need the server send PK, the idea 
is that the client send the one coded inside to the server after the hello 
negotiation so the server valid only his trusted client and denied all 
public ftp client.

--
From: "Francois PIETTE" <[EMAIL PROTECTED]>
Sent: Monday, October 20, 2008 5:51 AM
To: "ICS support mailing" 
Subject: Re: [twsocket] FTPS server with special need

>> I have project to code special FTPS server that don't need the server to
>> send
>> Public key to client but get this key from hard coded
>> maybe in string or streaming inside client program and after the client 
>> is
>> recognized like one trusted client then gave access to his directory
>> 1) client connects using TCP/IP
>> 2) Client says HELLO or whatever using public certificate without
>> negotiating certificates with server
>> 3) client authenticates using encrypted SSL, client send his internal
>> certificate to server to be reconized
>> any idea how I do this
>
> You'd better design your own protocol instead of trying to tweak FTPS.
>
> btw: What is the rationale behind your idea ? I don't understand clearly 
> the
> benefits. And I see very well what could be the pitfall: the so called 
> "man
> in the middle" attack.
>
> --
> [EMAIL PROTECTED]
> 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] C++ Builder 2009 TCP Server

2008-10-20 Thread Fastream Technologies
Remove the "const" in the pascal source for the params of the functions it
reports.

On Mon, Oct 20, 2008 at 2:04 PM, João Gonçalves
<[EMAIL PROTECTED]>wrote:

> Hello, thank you for your answers,
> I'm using ICS v7.0 with the example TCPSRV from v5.
> In fact I have errors in the Send function, if I comment this part of the
> code, I get this linker error:
> [ILINK32 Error] Error: Unresolved external '__fastcall
> Overbyteicswsocket::TCustomWSocket::SendTo(const sockaddr_in&, int, void *
> const, int)' referenced from
> D:\DOCUMENTOS\DESENVOLVIMENTO\PROJECTOS\05908\03 - DESENVOLVIMENTO\03 -
> INFORMÁTICA\MYSERVER\CPP\INTERNET\BCB2006THREADS2\DEBUG\TCPSRV1.OBJ
>
> Regards
> João
>
>
> -Mensagem original-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em
> nome
> de Fastream Technologies
> Enviada: segunda-feira, 20 de Outubro de 2008 11:39
> Para: ICS support mailing
> Assunto: Re: [twsocket] C++ Builder 2009 TCP Server
>
> I have seen linker errors in ICSv6 with BCB2007 in TWSocket.Send(). Have
> they been fixed (the "const" should have been removed). Maybe that's the
> cause..?
>
> Regards,
>
> SZ
>
> On Mon, Oct 20, 2008 at 1:16 PM, Arno Garrels <[EMAIL PROTECTED]> wrote:
>
> > João Gonçalves wrote:
> > > Hello,
> > > I currently working with C++ Builder 2009, and I'm trying to upgrade
> > > my TCP server (based on the ICS TCPSRV demo) for this version, but
> > > I'm getting several inconsistency and linker errors.
> > > Can anyone give me a little help, on this?
> >
> > AFAIK, ICS for C++ Builder 2009 is completely untested, there is a CB
> > package included which builds w/o errors, that's all.
> > Please provide the linker error text, also a minimal project that
> > demonstrates the errors would be very helpful.
> >
> > --
> > 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
>
> --
>
-- 
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] TPop3Cli header...

2008-10-20 Thread zayin

No problem.

> If you have no control over the client...

Yeah, that is why I went with a message ID number in the body and
instructions in the user manual stating the replay must contain the
unaltered message id line.

Thanks for all your help.




On 10/20/2008 7:03:54 AM, DZ-Jay ([EMAIL PROTECTED]) wrote:
> I'm sorry, I think I mispoke.  I was actually thinking of SMTP
> server-to-server communication, which preserves headers; I'm
> not sure
> clietns would do that.  As a matter of fact, I have a suspicion they
> don't.  I'd try it anyway, just in case.
> 
> However, the problem you have is not having control over the client;
> this is crucial.  If you have no control over the client, you cannot
> guarantee that a response or reply will contain any of the information
> you originally included in your message--headers or content.
> 
> dZ.
> 
> On Oct 20, 2008, at 05:41, DZ-Jay wrote:
> 
> >
> > On Oct 19, 2008, at 08:09, zayin wrote:
> >> The person receiving the alarm will just need to reply to the email.
> >
> > If you include an X-Header when you send the message, the client will
> > probably include it when replying, this is standard behaviour in most
> > clients.
> >
> >> So, it appears I might need to embed a unique string in the body of
> >> the
> >> message and use that to determine the responder.
> >
> > Use an X-Header.  Perform some tests: send a message with a new
> > X-Header and reply from your mail client and see if it's there.  This
> > may b

-- 
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] TPop3Cli header...

2008-10-20 Thread DZ-Jay
I'm sorry, I think I mispoke.  I was actually thinking of SMTP 
server-to-server communication, which preserves headers; I'm not sure 
clietns would do that.  As a matter of fact, I have a suspicion they 
don't.  I'd try it anyway, just in case.

However, the problem you have is not having control over the client; 
this is crucial.  If you have no control over the client, you cannot 
guarantee that a response or reply will contain any of the information 
you originally included in your message--headers or content.

dZ.

On Oct 20, 2008, at 05:41, DZ-Jay wrote:

>
> On Oct 19, 2008, at 08:09, zayin wrote:
>> The person receiving the alarm will just need to reply to the email.
>
> If you include an X-Header when you send the message, the client will
> probably include it when replying, this is standard behaviour in most
> clients.
>
>> So, it appears I might need to embed a unique string in the body of 
>> the
>> message and use that to determine the responder.
>
> Use an X-Header.  Perform some tests: send a message with a new
> X-Header and reply from your mail client and see if it's there.  This
> may be more reliable than including something in the body, which may be
> sanitized, truncated, or modified by the client or any proxy in
> between.
>
>   dZ.
> -- 
>   DZ-Jay [TeamICS]
>   http://www.overbyte.be/eng/overbyte/teamics.html
>
> -- 
> 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
>
>
-- 
DZ-Jay [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

-- 
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] C++ Builder 2009 TCP Server

2008-10-20 Thread João Gonçalves
Hello, thank you for your answers,
I'm using ICS v7.0 with the example TCPSRV from v5. 
In fact I have errors in the Send function, if I comment this part of the
code, I get this linker error:
[ILINK32 Error] Error: Unresolved external '__fastcall
Overbyteicswsocket::TCustomWSocket::SendTo(const sockaddr_in&, int, void *
const, int)' referenced from
D:\DOCUMENTOS\DESENVOLVIMENTO\PROJECTOS\05908\03 - DESENVOLVIMENTO\03 -
INFORMÁTICA\MYSERVER\CPP\INTERNET\BCB2006THREADS2\DEBUG\TCPSRV1.OBJ 

Regards
João  


-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome
de Fastream Technologies
Enviada: segunda-feira, 20 de Outubro de 2008 11:39
Para: ICS support mailing
Assunto: Re: [twsocket] C++ Builder 2009 TCP Server

I have seen linker errors in ICSv6 with BCB2007 in TWSocket.Send(). Have
they been fixed (the "const" should have been removed). Maybe that's the
cause..?

Regards,

SZ

On Mon, Oct 20, 2008 at 1:16 PM, Arno Garrels <[EMAIL PROTECTED]> wrote:

> João Gonçalves wrote:
> > Hello,
> > I currently working with C++ Builder 2009, and I'm trying to upgrade
> > my TCP server (based on the ICS TCPSRV demo) for this version, but
> > I'm getting several inconsistency and linker errors.
> > Can anyone give me a little help, on this?
>
> AFAIK, ICS for C++ Builder 2009 is completely untested, there is a CB
> package included which builds w/o errors, that's all.
> Please provide the linker error text, also a minimal project that
> demonstrates the errors would be very helpful.
>
> --
> 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

-- 
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] C++ Builder 2009 TCP Server

2008-10-20 Thread Fastream Technologies
I have seen linker errors in ICSv6 with BCB2007 in TWSocket.Send(). Have
they been fixed (the "const" should have been removed). Maybe that's the
cause..?

Regards,

SZ

On Mon, Oct 20, 2008 at 1:16 PM, Arno Garrels <[EMAIL PROTECTED]> wrote:

> João Gonçalves wrote:
> > Hello,
> > I currently working with C++ Builder 2009, and I'm trying to upgrade
> > my TCP server (based on the ICS TCPSRV demo) for this version, but
> > I'm getting several inconsistency and linker errors.
> > Can anyone give me a little help, on this?
>
> AFAIK, ICS for C++ Builder 2009 is completely untested, there is a CB
> package included which builds w/o errors, that's all.
> Please provide the linker error text, also a minimal project that
> demonstrates the errors would be very helpful.
>
> --
> 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] C++ Builder 2009 TCP Server

2008-10-20 Thread Arno Garrels
João Gonçalves wrote:
> Hello,
> I currently working with C++ Builder 2009, and I'm trying to upgrade
> my TCP server (based on the ICS TCPSRV demo) for this version, but
> I'm getting several inconsistency and linker errors.
> Can anyone give me a little help, on this?

AFAIK, ICS for C++ Builder 2009 is completely untested, there is a CB
package included which builds w/o errors, that's all.
Please provide the linker error text, also a minimal project that 
demonstrates the errors would be very helpful.

--
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] C++ Builder 2009 TCP Server

2008-10-20 Thread João Gonçalves
Hello,
I currently working with C++ Builder 2009, and I'm trying to upgrade my TCP
server (based on the ICS TCPSRV demo) for this version, but I'm getting
several inconsistency and linker errors.
Can anyone give me a little help, on this?
Thank you
Best regards
João Gonçalves 

-- 
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] TPop3Cli header...

2008-10-20 Thread DZ-Jay

On Oct 19, 2008, at 08:09, zayin wrote:
> The person receiving the alarm will just need to reply to the email.

If you include an X-Header when you send the message, the client will 
probably include it when replying, this is standard behaviour in most 
clients.

> So, it appears I might need to embed a unique string in the body of the
> message and use that to determine the responder.

Use an X-Header.  Perform some tests: send a message with a new 
X-Header and reply from your mail client and see if it's there.  This 
may be more reliable than including something in the body, which may be 
sanitized, truncated, or modified by the client or any proxy in 
between.

dZ.
-- 
DZ-Jay [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

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