What's new

.NET XBDM Sockets

  • Thread starter DaftHacker
  • Start date
  • Views 839
D

DaftHacker

Jet fuel can't melt steel beams
Messages
2,610
Reaction score
918
So im trying to set up an XBDM socket but im unable to send data, i have the socket connected with this code which works fine.
Code:
        TcpClient SocketConnection = new TcpClient();
        StreamReader SocketReader;

        public bool Connect(string IP)
        {
            try
            {
                SocketConnection.Connect(new IPEndPoint(IPAddress.Parse(IP), 730));
                SocketReader = new StreamReader(SocketConnection.GetStream());

                if (SocketReader.ReadLine() == "201- connected")
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            catch { return false; }
        }

But i am unable to send a command using this code
Code:
        StreamWriter SocketWriter;

        public void SendCommand(string Command)
        {
            SocketWriter = new StreamWriter(SocketConnection.GetStream());
            SocketWriter.Write(Command);
        }
Also how would i go about poking things such as a string, int, or any other types of data ? Also any other information on communicating with xbdm would be great.

Any help would be great, im using socket connections to learn how to communicate with xbdm and im make my own class for poking.
 
Last edited:
D

Dwack

Now employed at Dominoes!
Messages
4,550
Reaction score
2,947
So im trying to set up an XBDM socket but im unable to send data, i have the socket connected with this code which works fine.
Code:
        TcpClient SocketConnection = new TcpClient();
        StreamReader SocketReader;

        public bool Connect(string IP)
        {
            try
            {
                SocketConnection.Connect(new IPEndPoint(IPAddress.Parse(IP), 730));
                SocketReader = new StreamReader(SocketConnection.GetStream());

                if (SocketReader.ReadLine() == "201- connected")
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            catch { return false; }
        }

But i am unable to send a command using this code
Code:
        StreamWriter SocketWriter;

        public void SendCommand(string Command)
        {
            SocketWriter = new StreamWriter(SocketConnection.GetStream());
            SocketWriter.Write(Command);
        }
Also how would i go about poking things such as a string, int, or any other types of data ? Also any other information on communicating with xbdm would be great.

Any help would be great, im using socket connections to learn how to communicate with xbdm and im make my own class for poking.

they've already made a very handy class for working with xbdm. if you have the SDK installed, open the sdk documentation and do a search for IXboxConsole
 
D

DaftHacker

Jet fuel can't melt steel beams
Messages
2,610
Reaction score
918
they've already made a very handy class for working with xbdm. if you have the SDK installed, open the sdk documentation and do a search for IXboxConsole
Nothing in here really makes any sense to me since its the first time opening it and besides its all in c++ right ? Also i don't want to use any included dlls or extra files, im really just trying to do my own thing here.
 
X

Xeren

♦♦♦ God Complex ♦♦♦
Messages
5,671
Reaction score
2,120
So im trying to set up an XBDM socket but im unable to send data, i have the socket connected with this code which works fine.
Code:
        TcpClient SocketConnection = new TcpClient();
        StreamReader SocketReader;
 
        public bool Connect(string IP)
        {
            try
            {
                SocketConnection.Connect(new IPEndPoint(IPAddress.Parse(IP), 730));
                SocketReader = new StreamReader(SocketConnection.GetStream());
 
                if (SocketReader.ReadLine() == "201- connected")
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            catch { return false; }
        }

But i am unable to send a command using this code
Code:
        StreamWriter SocketWriter;
 
        public void SendCommand(string Command)
        {
            SocketWriter = new StreamWriter(SocketConnection.GetStream());
            SocketWriter.Write(Command);
        }
Also how would i go about poking things such as a string, int, or any other types of data ? Also any other information on communicating with xbdm would be great.

Any help would be great, im using socket connections to learn how to communicate with xbdm and im make my own class for poking.
When I created my own class for handling the Xbox 360's socket, I had used both TCP and UDP. It's not just a matter of writing a command if I remember correctly. I'd help you out, but I don't have the source code to any of my applications currently. For directly editing the memory, you just use the IO that comes with the TcpClient object.
 
D

DaftHacker

Jet fuel can't melt steel beams
Messages
2,610
Reaction score
918
When I created my own class for handling the Xbox 360's socket, I had used both TCP and UDP. It's not just a matter of writing a command if I remember correctly. I'd help you out, but I don't have the source code to any of my applications currently. For directly editing the memory, you just use the IO that comes with the TcpClient object.
Yeah i got it now, what did you use udp for ?
 
D

DaftHacker

Jet fuel can't melt steel beams
Messages
2,610
Reaction score
918
For function calls if I can remember correctly.
Ive never used function calls, what im doing right now is just poking/reading from an address. Is there anywhere i can learn about function calls ? Also do you know if i can interface with neighborhood to somehow to get the default consoles ip ?
 
X

Xeren

♦♦♦ God Complex ♦♦♦
Messages
5,671
Reaction score
2,120
Ive never used function calls, what im doing right now is just poking/reading from an address. Is there anywhere i can learn about function calls ? Also do you know if i can interface with neighborhood to somehow to get the default consoles ip ?
There isn't any information on the internet about what you're doing besides the basic connecting. You can use some native functions to retrieve information from Xbox 360 Neighborhood, but I couldn't say exactly how since I don't have it as of now. I would try seeing if you can see the items(consoles) of the (Neighborhood) directory. If so, then it'd possible to extract the metadata or just the item's name.
 
S

S7 Pro

Seasoned Member
Messages
2,511
Reaction score
1,604
If you're working with C#, like D Dwack said, the IXboxConsole is your best bet. It'll be much easier reading documentation on how it works, than writing your own class. Just search IXboxConsole in the Xbox 360 Documentation. The only reason you'd need to write you own class is if you were working with another language like Java or Python.
 
Top Bottom