- int iResult1 = open("/dev/ser1",…);
- int sock = socket(AF_INET,…);
Why iResult1 = sock ?
Is descriptor the global only one ?
then I close socket through close(sock),but the serail port is closed?
why?
thanks in advance.
Hello, eog2000
- int iResult1 = open("/dev/ser1",…);
- int sock = socket(AF_INET,…);
Why iResult1 = sock ?
Is descriptor the global only one ?
then I close socket through close(sock),but the serail port is closed?
why?
thanks in advance.
is (1) and (2) in different programs, or not?
post more code, please.
–
kris