3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
|
proc ::nano::node::realtime::incoming {socket} {
set data [read $socket 8192]
if {$data eq ""} {
return
}
set remote [chan configure $socket -peer]
set address [lindex $remote 0]
set port [lindex $remote 1]
catch {
set peerSock [::nano::node::createSocket realtime $address $port]
}
if {![info exists peerSock]} {
::nano::node::log "Error: Unable to create socket from address \"$address\" port \"$port\""
return
|
|
|
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
|
proc ::nano::node::realtime::incoming {socket} {
set data [read $socket 8192]
if {$data eq ""} {
return
}
set remote [chan configure $socket -peer]
set address [string trim [lindex $remote 0] "\[\]"]
set port [lindex $remote 1]
catch {
set peerSock [::nano::node::createSocket realtime $address $port]
}
if {![info exists peerSock]} {
::nano::node::log "Error: Unable to create socket from address \"$address\" port \"$port\""
return
|