adekunleadekoya
Programmer
- May 19, 2008
- 30
I have this error "couldn't open socket: address already in use " whenever i close my wish windows running this code below and i try to source the program again.
Does it mean that the socket was not gracefully closed ? How could i do dat ? Am just learning tcl/tk with a plan to develop a network application with d language. so i need to get at d basics of d language in no time.
any help will be appreciated. [ See my sample code below]
/*******************************
socket -server Accept 8000
proc Accept {newSock addr port} {
puts "Accepted $newSock from $addr port $port"
puts $newSock "goodbye"
flush $newSock
close newSock
}
****************************/
Does it mean that the socket was not gracefully closed ? How could i do dat ? Am just learning tcl/tk with a plan to develop a network application with d language. so i need to get at d basics of d language in no time.
any help will be appreciated. [ See my sample code below]
/*******************************
socket -server Accept 8000
proc Accept {newSock addr port} {
puts "Accepted $newSock from $addr port $port"
puts $newSock "goodbye"
flush $newSock
close newSock
}
****************************/