Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending to a NetAddr with broadcast IP fails #930

Closed
telephon opened this issue Aug 8, 2013 · 0 comments
Closed

Sending to a NetAddr with broadcast IP fails #930

telephon opened this issue Aug 8, 2013 · 0 comments
Assignees
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: sclang sclang C++ implementation (primitives, etc.). for changes to class lib use "comp: class library"

Comments

@telephon
Copy link
Member

telephon commented Aug 8, 2013

Here is a reproducer:

// NetAddr.broadcastFlag = true; 

n =  NetAddr("255.255.255.255", 57120);
n.sendMsg("/test");

Throws the following error:

caught exception in primitive NetAddr:sendMsg
ERROR: address_v4 from unsigned longERROR: Primitive '_NetAddr_SendMsg' failed.
Failed.
RECEIVER:
Instance of NetAddr { (0x1190785a8, gc=98, fmt=00, flg=00, set=02)
instance variables [4]
addr : Integer -1
port : Integer 57120
hostname : "255.255.255.255"
socket : nil
}
PATH: /Volumes/data/sc/(this)/__projekte/NetworkedAgain/Tasks networking.scd
CALL STACK:
MethodError:reportError 0x11b7b8498
arg this =
Nil:handleError 0x11b7b5738
arg this = nil
arg error =
Thread:handleError 0x11b704098
arg this =
arg error =
Object:throw 0x11b7b8ee8
arg this =
Object:primitiveFailed 0x11a13d648
arg this =
Interpreter:interpretPrintCmdLine 0x11a303048
arg this =
var res = nil
var func =
var code = "n.sendMsg("/test", \symbol);"
var doc =
var ideClass =
Process:interpretPrintCmdLine 0x11b7b6c88
arg this =
^^ The preceding error dump is for ERROR: Primitive '_NetAddr_SendMsg' failed.
Failed.
RECEIVER: a NetAddr(255.255.255.255, 57120)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: sclang sclang C++ implementation (primitives, etc.). for changes to class lib use "comp: class library"
Projects
None yet
Development

No branches or pull requests

2 participants