Raised This Month: $ Target: $400
 0% 

PHP to VB


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Process
Junior Member
Join Date: Jan 2015
Location: Banned
Old 01-17-2015 , 08:50   PHP to VB
Reply With Quote #1

How can i convert this to vb.net

PHP Code:
// Ip address and port
$_ip '127.0.0.1';
$_port '27015';
 
$socket stream_socket_client('udp://'.$_ip.':'.$_port$errno$errstr30);
stream_set_timeout($socket10);
 
// Send command to server
$cmd SERVERQUERY_GETCHALLENGE;
$length strlen($cmd);
fwrite($socket$cmd$length);
 
// Get response from server
$response fread($socketPACKET_SIZE);
 
if (empty(
$response))
{
    echo 
'Server Offline';
}
else
{
    echo 
'Server Online';


Last edited by Process; 01-17-2015 at 08:52.
Process is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode