FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

networking help

 


umeshtangnu
i have a problems
CODE
public static void web(Socket suck )
{
byte [] rbuffer =new byte[BUFSIZE+1];
byte [] sbuffer =new byte[BUFSIZE+1];
string str="<HTML><BODY><H1>nweb Web Server Sorry:</H1></BODY></HTML>\r\n";
sbuffer=str//error can convet
suck.Receive(rbuffer);
suck.Send(sbuffer);//cant send data as only byte array can be send



}
how can an string be converted to a byte array.
Even convert class is not useful
plz help
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.