Erlang socket client

tty <>
Wed Jun 1 16:41:41 CEST 2005


Hello,

Thank you for your reply. Here is a sample screen
shot of both sessions.

 ====================  Telnet session ========
telnet 172.20.22.180 7777
Trying 172.20.22.180...
Connected to 172.20.22.180.
Escape character is '^]'.
ati
ati
Nokia
 
OK
^]q
 
telnet> q
 ====================  Telnet session ========

I tried two different gen_tcp:connect. The first
example mclient:client uses {active, true}. The 
second example uses {active, false}.

Both connect uses 'binary', {packet, 0}.

mclient:mclient does two gen_tcp:recv with a timeout of 6000.

 ====================  Erl session ========

Erlang (BEAM) emulator version 5.4.4 [source] [hipe]
Eshell V5.4.4  (abort with ^G)
 
1> mclient:client("ati").
ati
 
ok
2> mclient:mclient("ati").
some stuff0 ati
 
Error timeout
ok
3>

 ====================  Erl session ========

The code used is included. 

Thanks again.

Tee
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mclient.erl
Type: application/octet-stream
Size: 1184 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050601/e05e83b6/attachment.obj>


More information about the erlang-questions mailing list