syswrite blocked

2004-12-02 Thread Lin Jingxian
hi, I have write a script to expose a COM port as tcp server.in the readComm subroutine ,the thread just block in the line: my $ret = syswrite($sock,$buf); can anybody tell me why syswrite blocked here ? thansk. following is my code: ===

Win32::SerialPort and thread

2004-11-23 Thread Lin Jingxian
hi, can Win32::SerialPort be used in multi-thread environment? I want to use two threads to access COM1 on my computer, one for reading and one for writing.I have wrotten some code to do it,but it didn't work.any idea? here is my code: # reopen COM and Tie it $commPort = tie (*COMM, 'Win32: