What's new

.NET XBDM Sockets

  • Thread starter DaftHacker
  • Start date
  • Views 1,046
DaftHacker

DaftHacker

Jet fuel can't melt steel beams
Programmer Forum Addict Fabled Veteran
Messages
2,606
Reaction score
917
Points
440
Sin$
7
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:
Dwack

Dwack

Now employed at Dominoes!
Experienced Veteran Hardened Veteran
Messages
4,551
Reaction score
2,949
Points
685
Sin$
0
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
 
DaftHacker

DaftHacker

Jet fuel can't melt steel beams
Programmer Forum Addict Fabled Veteran
Messages
2,606
Reaction score
917
Points
440
Sin$
7
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.
 
Xeren

Xeren

♦♦♦ God Complex ♦♦♦
Legendary Veteran Programmer Modder
Messages
5,668
Reaction score
2,107
Points
795
Sin$
0
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.
 
DaftHacker

DaftHacker

Jet fuel can't melt steel beams
Programmer Forum Addict Fabled Veteran
Messages
2,606
Reaction score
917
Points
440
Sin$
7
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 ?
 
DaftHacker

DaftHacker

Jet fuel can't melt steel beams
Programmer Forum Addict Fabled Veteran
Messages
2,606
Reaction score
917
Points
440
Sin$
7
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 ?
 
Xeren

Xeren

♦♦♦ God Complex ♦♦♦
Legendary Veteran Programmer Modder
Messages
5,668
Reaction score
2,107
Points
795
Sin$
0
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.
 
S7 Pro

S7 Pro

Seasoned Member
Modder Programmer
Messages
2,511
Reaction score
1,599
Points
560
Sin$
7
If you're working with C#, like Dwack 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
Login
Register