Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
tidyboy
tidyboy's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Processing UDP ,How do I use unicase function?
[2 Replies]
01-May-2012 05:37 PM
Forum:
Contributed Library Questions
Hello all,
I have a question for unicast of UDP .
I don't know how to send unicast value from Client to Server.
below is my code
Client:(ex:Client Address : 192.168.31.193 )
import hypermedia.net.*;
UDP udp;
void setup(){
udp=new UDP(this,2346," 192.168.32.114 ");
udp.listen(true);
udp.send("b");
}
void draw(){
}
void receive(byte[] data,String group_ip,int port){
println(data);
}
The error print:
opening socket failed!
address: 192.168.32.114 , port:2346 [group:null]
Cannot assign requested address: Cannot bind
Server: ex:(Server Address : 192.168.32.114)
import hypermedia.net.*;
UDP udp;
void setup(){
udp=new UDP(this,2346);
udp.listen(true);
}
void draw(){
}
void receive(byte[] data,String group_ip,int port){
println(data);
}
Tidy
«Prev
Next »
Moderate user : tidyboy
Forum