gen_tcp:send undefined?

Willem Broekema willem@REDACTED
Mon Jul 9 21:14:50 CEST 2001


In a file sockprocess.erl in function handle_socket I have the following 
statement:
    ...
    receive
      {tcp, Sock, BData} ->
        ok = get_tcp:send(Sock, "test"),
        ...

which will cause the node to exit:

{'EXIT', <0.339.0>,
 {undef,[{get_tcp,send,[#Port<0.102>,[]]},{sockprocess,handle_socket,2}]}}

I wonder what could be causing this error, as I use other functions in the
gen_tcp module (like gen_tcp:accept) before this happens, and I have not
changed the gen_tcp file, and send/2 is indeed in the module.

Thanks for your help.

- Willem




More information about the erlang-questions mailing list