[Spread-users] How to run spread demon plzz help
Bhavik joshi
mail2bhavik at gmail.com
Mon Jan 12 01:46:06 EST 2009
Hi m joshi i want to know how to run spread demon for connecting with java
api.. this is my java program and spread conf file.
Spread_Segment 127.0.0.255:4803 {
local1 127.0.0.1
}
import spread.*;
import java.net.*;
/**
*
* @author root
*/
public class Spread1
{
private static SpreadConnection cn;
public static void main(String asd[])
{
String user = new String("User");
String address = null;
int port = 0;
try{
cn =new SpreadConnection();
cn.connect(InetAddress.getLocalHost(), 4803, null, false, false);
}
catch(SpreadException e)
{
System.out.print("Error");
}
catch(UnknownHostException e)
{
System.out.print("Error");
}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.spread.org/pipermail/spread-users/attachments/20090112/bda8dee7/attachment.html
More information about the Spread-users
mailing list