Re: [twsocket] FTP Put using streams

2008-04-21 Thread Ionut Muntean
Harold Holmes wrote:
 I have a bitmap in a timage and I'd like to send that image to the server
 without saving the file to the local harddrive first. Is it possible to use
 a stream to do this?

 Best regards,
 Harold
   
Yes, you can ...

[code]

ftp.hostname := 'your_host';
ftp.username := 'user';
ftp.password := 'password';
ftp.binary := true;
ftp.passive := true; // if u want passive ...
ftp.hostdirname := 'your/directory';
ftp.hostfilename := 'filename';
ftp.localstream := your_stream;
try
  ftp.transmit;
except
 on e: exception do
   { do your exception handling ... }
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] UDP Newbie...

2008-04-01 Thread Ionut Muntean
Please post your code. I assure you, everything is working great in ICS ...

/ Ionut Muntean

zayin wrote:
 Hello Wilfried,

   
 Are you sure you filled in the correct IP? 
 

 Yes.

   
 Do you create all in code or do you have TWSocket component on your form?
 

 On the form.

 I deleted the original component, put a new TWSocket on the form, set the
 addr to 192.168.245.2, set the proto to udp, called listen, called Send and
 got the bind failure.

 Calling connect instead of listen and then send performs without error. I
 see the data on the other computer.

 So, it appears UDP does require two TWSocket. One to send and one to listen.

 Ideas?

 Ciao,

 Mark
  

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Wilfried Mestdagh
 Sent: Tuesday, April 01, 2008 2:26 AM
 To: ICS support mailing
 Subject: Re: [twsocket] UDP Newbie...

 Hello Mark,

   
 If I call listen and then try to send I get an error 10049 (Bind 
 Address not
 available)
 

 Are you sure you filled in the correct IP?

   
 If I call connect and then send, I see the data at the other end but I 
 do not get any response in the DataAvailable callback.
 

 No because of the error in previous paragraph it will not listen.

   
 If I open a second TWSocket to listen I get a callback.
 

 So that is strange. Do you create all in code or do you have TWSocket
 component on your form?  If the latter then I suggest to delete it  and try
 with a fresh one. Maybe you have changed some properties and have a conflikt
 now.

 keep a copy of it to check later what exact was changed !

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

   

-- 
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] multipart/x-mixed-replace

2006-09-20 Thread Ionut Muntean
Hi,

The question is simple: has anyone succeded to serve 
multipart/x-mixed-replace jpeg streams with Httpserver? If so, how?

Thank you,
Ionut Muntean
-- 
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] Udp and WSocketS

2006-02-10 Thread Ionut Muntean
Hi,

I'm trying to build an udp server using TWSocketServer component. Source 
compileok, server is listening on the specified udp port, but 
OnClientConnected and OnClientDataAvailable is not called.
TCP works fine with the same code. Are there any special things I have 
to do for udp?

10x
Ionut Muntean
-- 
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] What is wrong in this code?

2006-02-06 Thread Ionut Muntean
Hi,
Please look at the code below.
.
.
.
  try
   try
Query.Open;
OnDataSent := DataWasSent;
// DataWasSent sets SentOk to True
while not Query.EOF do
begin
 Rec:= PrepareRec(true);
 Rec.AllDist := Rec.AllDist - D;
 Rec.Count := RecCount;
 SentOk := false;
 Send(@Rec, SizeOf(TRec));
 repeat
  ProcessMessages;
 until SentOk;
 Query.Next;
end;
   except
on E: Exception do
 Display(ExecuteCommand1 - %s', [E.Message]);
   end
  finally
   Query.Close;
   OnDataSent := nil
  end;

The code is executed from OnClientDataAvailable of an TWSocketServer. 
When the execution reach the repeat .. until SentOk, on 
ProcessMessages the code is reentered a second time.

What am I doing wrong?

10x,
Ionut Muntean
-- 
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] What is wrong in this code?

2006-02-06 Thread Ionut Muntean
Hi Wilfried,

I've changed the code to this:

in tha main function:
.
Rec := PrepareRec(true);
Rec.AllDist := Rec.AllDist - Dist;
Rec.count := RecCount;
Send(@Rec, SizeOf(TRec));
Query.Next;
repeat
 ProcessMessages
until SentOk;
.

in OnDataSent:
.
  if Query.Eof then
  begin
   SentOk := true;
   exit;
  end
  else
  begin
   Rec := PrepareRec(true);
   Rec.AllDist := Rec.AllDist - Dist;
   Rec.count := RecCount;
   Send(@Rec, SizeOf(TRec));
   Query.Next;

  end;

The code is still entering 2 times ... :(

/ Ionut Muntean


Wilfried Mestdagh wrote:
 Hello Ionut,
 
 
The code is executed from OnClientDataAvailable of an TWSocketServer.
When the execution reach the repeat .. until SentOk, on 
ProcessMessages the code is reentered a second time.
 
 
 This is normal. When you start looping processmessages then your code
 can be reentered because messages ar pumped. This is also bad design.
 You can easy change your code event driven, just call Send there with
 the first record. On OnDataSent you send your next record, etc, as Dod
 already mentioned.
 
 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz
 
 Monday, February 6, 2006, 10:49, Ionut Muntean wrote:
 
 
Hi,
Please look at the code below.
.
.
.
  try
   try
Query.Open;
OnDataSent := DataWasSent;
// DataWasSent sets SentOk to True
while not Query.EOF do
begin
 Rec:= PrepareRec(true);
 Rec.AllDist := Rec.AllDist - D;
 Rec.Count := RecCount;
 SentOk := false;
 Send(@Rec, SizeOf(TRec));
 repeat
  ProcessMessages;
 until SentOk;
 Query.Next;
end;
   except
on E: Exception do
 Display(ExecuteCommand1 - %s', [E.Message]);
   end
  finally
   Query.Close;
   OnDataSent := nil
  end;
 
 
The code is executed from OnClientDataAvailable of an TWSocketServer. 
When the execution reach the repeat .. until SentOk, on 
ProcessMessages the code is reentered a second time.
 
 
What am I doing wrong?
 
 
10x,
Ionut Muntean
 
 

-- 
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.RcvStream - how to clear?

2005-12-17 Thread Ionut Muntean
Try RcvStream.Position := 0; when resetting ...
If you set it to nil, it is obvious you'll get Access Violations.

/ IM

Me wrote:
 Hi
 I noticed that if I'm not doing anything with RCVStream of HTTPCli 
 in requests im getting Stream with data from previous requests that 
 were made on the component. How do i avoid it? How to cleanup 
 rcvStream? Setting it to nil after RequestDone causes Access 
 Violation.
 Ann
 

-- 
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] ICS and Free Pascal

2005-12-13 Thread Ionut Muntean
Thank you Marco.

So, console programs should compile. This is what I'm interested in. I will
give it a try. Where are the patches u mentioned?

/ Ionut Muntean

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Marco van de Voort
Sent: 13 12 2005 19:11
To: ICS support mailing
Subject: Re: [twsocket] ICS and Free Pascal

  Is anyone have succesfully using ICS with FPC? I would like to write 
  some programs in FP and as i am an ICS addicted user ...
 
 I never tested with FP, but Marco van de Voort ([EMAIL PROTECTED] or
 [EMAIL PROTECTED]) sent me some changes to make it compatible as 
 much as possible. There are still some shortcomings in FP related to GUI
programs.
 Please ask Marco.

IIRC for win32 it is mostly working, including the designtime support
working reasonably.  Basic console operation should nearly compile out of
the box, thanks to Francois including patches.

However the first lazarus attempt (the designtime part) was too ugly to
commit, so that is a to-do.

There was an half attempt at porting the Kylix version, but it was decided
to wait a bit, because due to CrossFPC Kylix compability is still rapidly
improving. (but; Kylix compat is linux/x86 only)




--
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] ICS and Free Pascal

2005-12-10 Thread Ionut Muntean

Hi all,

Is anyone have succesfully using ICS with FPC? I would like to write
some programs in FP and as i am an ICS addicted user ...

10x

--
Ionut Muntean
-- 
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] Discard any bytes in the read buffer

2005-12-07 Thread Ionut Muntean
Hi,

Is there any possibility to discard any bytes that are in the read
buffer?

10x

/ Ionut Muntean

-- 
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] File download

2005-12-07 Thread Ionut Muntean

Try to create a TFileStream and assign it to RcvdStream ...

On Wed, Dec 07, 2005 at 09:39:54PM +0100, Me wrote:
 Hmm... How do i download a file and save it on disk? Got the 
 RcvdStream and... what? How do i save it to file? I thought that 
 stream.savetofile would work but there is no such a thing...
 Ann
 
 -- 
 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

--
Ionut Muntean
Tel.: 0368-100777, 0722-295205
-- 
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] Strange

2005-12-06 Thread Ionut Muntean
Hi,

I'm experiencing a strange behavior of WSocket.Connect -
WSocket.OnSessionConnected. I have 2 PC. One on which I develop my
applications and a laptop. Both of them are Windows XP Proffesional with SP2
installed. The server my application is connecting is on the same 100 Mbps
LAN as the 2 PC's above. From the firs PC, after calling WSocket.Connect,
the connection is established very fast and OnSessionConnected is called. On
the second PC, after calling Connect, nothing happens for about 30 seconds.
The server the application is connecting does no receive any connection for
the time specified above. So, to resume, on the first PC the connection is
established right after WSocket.Connect and on the second PC the connection
is established after an anoying delay. 
Does someone experience any similar situation? I have tried wsoTcpNoDelay on
both server and client. No results.
Please help.

/ Ionut Muntean

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

2005-12-06 Thread Ionut Muntean
Of course, the first thing I thought was that there is a DNS problem so I've
used numeric ip addresses in the Addr field. The result is the same. :(
Anyway, the both machines are using the same (local) DNS server. The ping
time between the server and the 2 PC's is under 0.3 ms...

10x for the quick response.

/ Ionut

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Florin Vancea
Sent: 6 decembrie 2005 05:19 PM
To: ICS support mailing
Subject: Re: [twsocket] Strange

Do you use symbolic names for the target host?
What are your DNS settings on both machines?
Maybe the DNS on the second machine is having a hard time resolving the name
(i.e. a dead or not available DNS server specified first).

- Original Message -
From: Ionut Muntean [EMAIL PROTECTED]
To: twsocket@elists.org
Sent: Tuesday, December 06, 2005 3:31 PM
Subject: [twsocket] Strange


 Hi,

 I'm experiencing a strange behavior of WSocket.Connect -
 WSocket.OnSessionConnected. I have 2 PC. One on which I develop my
 applications and a laptop. Both of them are Windows XP Proffesional with
SP2
 installed. The server my application is connecting is on the same 100 Mbps
 LAN as the 2 PC's above. From the firs PC, after calling WSocket.Connect,
 the connection is established very fast and OnSessionConnected is called.
On
 the second PC, after calling Connect, nothing happens for about 30
seconds.
 The server the application is connecting does no receive any connection
for
 the time specified above. So, to resume, on the first PC the connection is
 established right after WSocket.Connect and on the second PC the
connection
 is established after an anoying delay.
 Does someone experience any similar situation? I have tried wsoTcpNoDelay
on
 both server and client. No results.
 Please help.

 / Ionut Muntean

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

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

2005-12-06 Thread Ionut Muntean
The telnet connection on the specified port on the server is working well.
:(

/ Ionut Muntean 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Francois Piette
Sent: 6 decembrie 2005 05:23 PM
To: ICS support mailing
Subject: Re: [twsocket] Strange

 I'm experiencing a strange behavior of WSocket.Connect - 
 WSocket.OnSessionConnected. I have 2 PC. One on which I develop my 
 applications and a laptop. Both of them are Windows XP Proffesional 
 with SP2 installed. The server my application is connecting is on the 
 same 100 Mbps LAN as the 2 PC's above. From the firs PC, after calling 
 WSocket.Connect, the connection is established very fast and 
 OnSessionConnected is called. On the second PC, after calling Connect,
nothing happens for about 30 seconds.
 The server the application is connecting does no receive any 
 connection for the time specified above. So, to resume, on the first 
 PC the connection is established right after WSocket.Connect and on 
 the second PC the connection is established after an anoying delay.
 Does someone experience any similar situation? I have tried 
 wsoTcpNoDelay on both server and client. No results.
 Please help.

I could be a DNS problem. Try connecting by specifying the IP address
instead of hostname to be sure it is not a DNS problem.
What is the ping time ? Try ping using the IP address and ping using the
hostname.
Try using the command line telnet to connect to your server:
telnet your_server_name your_server_port If it is slow also, then
defenitely there is a problem within the OS, I guess a DNS problem.

--
Contribute to the SSL Effort. Visit
http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware) Author of MidWare
(Multi-tier framework, freeware) 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

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

2005-12-06 Thread Ionut Muntean
Excuse my ignorance, but please, is there a packet monitor in Window$ XP? I
am a Linux user, and now I am forced to develop an windows app. :(

/ Ionut Muntean 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Florin Vancea
Sent: 6 decembrie 2005 06:24 PM
To: ICS support mailing
Subject: Re: [twsocket] Strange

Save some time, pick the big gun :)

I mean: Start the packet monitor (you said it's a WXP-SP2) and see what's
happening first hand on each machine.

And please post back, as it looks interesting...

- Original Message -
From: Ionut Muntean [EMAIL PROTECTED]
To: 'ICS support mailing' twsocket@elists.org
Sent: Tuesday, December 06, 2005 5:49 PM
Subject: Re: [twsocket] Strange


 Of course, the first thing I thought was that there is a DNS problem so
I've
 used numeric ip addresses in the Addr field. The result is the same. :(
 Anyway, the both machines are using the same (local) DNS server. The ping
 time between the server and the 2 PC's is under 0.3 ms...

 10x for the quick response.

 / Ionut

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Florin Vancea
 Sent: 6 decembrie 2005 05:19 PM
 To: ICS support mailing
 Subject: Re: [twsocket] Strange

 Do you use symbolic names for the target host?
 What are your DNS settings on both machines?
 Maybe the DNS on the second machine is having a hard time resolving the
name
 (i.e. a dead or not available DNS server specified first).

 - Original Message -
 From: Ionut Muntean [EMAIL PROTECTED]
 To: twsocket@elists.org
 Sent: Tuesday, December 06, 2005 3:31 PM
 Subject: [twsocket] Strange


  Hi,
 
  I'm experiencing a strange behavior of WSocket.Connect -
  WSocket.OnSessionConnected. I have 2 PC. One on which I develop my
  applications and a laptop. Both of them are Windows XP Proffesional with
 SP2
  installed. The server my application is connecting is on the same 100
Mbps
  LAN as the 2 PC's above. From the firs PC, after calling
WSocket.Connect,
  the connection is established very fast and OnSessionConnected is
called.
 On
  the second PC, after calling Connect, nothing happens for about 30
 seconds.
  The server the application is connecting does no receive any connection
 for
  the time specified above. So, to resume, on the first PC the connection
is
  established right after WSocket.Connect and on the second PC the
 connection
  is established after an anoying delay.
  Does someone experience any similar situation? I have tried
wsoTcpNoDelay
 on
  both server and client. No results.
  Please help.
 
  / Ionut Muntean
 
  -- 
  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

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

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

2005-12-06 Thread Ionut Muntean
TnClient is behaving the same strange way. TnClient displays: Connecting to
xxx.xxx.xxx.xxx and then Connected but the welcome banner of the server
is displayed with 20-30 secs delay. On the other machine, the welcome banner
is displayed right after Connected.

My gues is it can be an OS bug, on the specific hardware platform (ethernet
NIC, etc.).

I've downloaded a packet sniffer, and 3 packets are captured when the
connection is initialized: one from the client to the server, one from the
server to the client and again, one from the client, and then the data
transfer is delayed.

The server is build around ucspi-tcp from http://cr.yp.to, on linux. On
short, the tcpserver program is listening on a specified port and when a
connection is established they launch an external program, rewriting
input/output filedescriptors of that program on the incoming socket. It
works very well, as it is also used for the (*nix users wellknowed) qmail.

10x again,
/ Ionut Muntean

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Francois PIETTE
Sent: 6 decembrie 2005 07:56 PM
To: ICS support mailing
Subject: Re: [twsocket] Strange

 The telnet connection on the specified port on the server is working well.
 :(

OK, so let's try with one of the ICS provided demos so that we are sure you
have not a bug in your own code. Use TnClient for example.

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be



- Original Message -
From: Ionut Muntean [EMAIL PROTECTED]
To: 'ICS support mailing' twsocket@elists.org
Sent: Tuesday, December 06, 2005 4:51 PM
Subject: Re: [twsocket] Strange


 The telnet connection on the specified port on the server is working well.
 :(

 / Ionut Muntean

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Francois Piette
 Sent: 6 decembrie 2005 05:23 PM
 To: ICS support mailing
 Subject: Re: [twsocket] Strange

 I'm experiencing a strange behavior of WSocket.Connect -
 WSocket.OnSessionConnected. I have 2 PC. One on which I develop my
 applications and a laptop. Both of them are Windows XP Proffesional
 with SP2 installed. The server my application is connecting is on the
 same 100 Mbps LAN as the 2 PC's above. From the firs PC, after calling
 WSocket.Connect, the connection is established very fast and
 OnSessionConnected is called. On the second PC, after calling Connect,
 nothing happens for about 30 seconds.
 The server the application is connecting does no receive any
 connection for the time specified above. So, to resume, on the first
 PC the connection is established right after WSocket.Connect and on
 the second PC the connection is established after an anoying delay.
 Does someone experience any similar situation? I have tried
 wsoTcpNoDelay on both server and client. No results.
 Please help.

 I could be a DNS problem. Try connecting by specifying the IP address
 instead of hostname to be sure it is not a DNS problem.
 What is the ping time ? Try ping using the IP address and ping using the
 hostname.
 Try using the command line telnet to connect to your server:
telnet your_server_name your_server_port If it is slow also, then
 defenitely there is a problem within the OS, I guess a DNS problem.

 --
 Contribute to the SSL Effort. Visit
 http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 Author of ICS (Internet Component Suite, freeware) Author of MidWare
 (Multi-tier framework, freeware) 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

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

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

2005-12-06 Thread Ionut Muntean
The problem is solved. :) The server is trying to get ident information from
the client machine when a connection is established, and since there is no
response from the client machine ... it waits until timeout.

Thanks to all,

/ Ionut Muntean



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Francois PIETTE
Sent: 6 decembrie 2005 07:56 PM
To: ICS support mailing
Subject: Re: [twsocket] Strange

 The telnet connection on the specified port on the server is working well.
 :(

OK, so let's try with one of the ICS provided demos so that we are sure you
have not a bug in your own code. Use TnClient for example.

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be



- Original Message -
From: Ionut Muntean [EMAIL PROTECTED]
To: 'ICS support mailing' twsocket@elists.org
Sent: Tuesday, December 06, 2005 4:51 PM
Subject: Re: [twsocket] Strange


 The telnet connection on the specified port on the server is working well.
 :(

 / Ionut Muntean

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Francois Piette
 Sent: 6 decembrie 2005 05:23 PM
 To: ICS support mailing
 Subject: Re: [twsocket] Strange

 I'm experiencing a strange behavior of WSocket.Connect -
 WSocket.OnSessionConnected. I have 2 PC. One on which I develop my
 applications and a laptop. Both of them are Windows XP Proffesional
 with SP2 installed. The server my application is connecting is on the
 same 100 Mbps LAN as the 2 PC's above. From the firs PC, after calling
 WSocket.Connect, the connection is established very fast and
 OnSessionConnected is called. On the second PC, after calling Connect,
 nothing happens for about 30 seconds.
 The server the application is connecting does no receive any
 connection for the time specified above. So, to resume, on the first
 PC the connection is established right after WSocket.Connect and on
 the second PC the connection is established after an anoying delay.
 Does someone experience any similar situation? I have tried
 wsoTcpNoDelay on both server and client. No results.
 Please help.

 I could be a DNS problem. Try connecting by specifying the IP address
 instead of hostname to be sure it is not a DNS problem.
 What is the ping time ? Try ping using the IP address and ping using the
 hostname.
 Try using the command line telnet to connect to your server:
telnet your_server_name your_server_port If it is slow also, then
 defenitely there is a problem within the OS, I guess a DNS problem.

 --
 Contribute to the SSL Effort. Visit
 http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 Author of ICS (Internet Component Suite, freeware) Author of MidWare
 (Multi-tier framework, freeware) 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

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

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