Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rpiller

Pages: [1] 2 3 ... 5
1
RakNet C++ Support / Re: Calling a web service
« on: July 20, 2014, 10:44:45 AM »
Here's my code, and the result is supposed to be a record added to the DB but that doesn't happen. If I put the url in the browser it works so I know the php code is working. Just need to figure out how to do this via RakNet.

Code: [Select]
TCPInterface *tcp = RakNet::OP_NEW<TCPInterface>(__FILE__, __LINE__);

tcp->Start(0, 64);

HTTPConnection* http = RakNet::OP_NEW<HTTPConnection>(__FILE__, __LINE__);

http->Init(tcp, "localhost");

http->Update();

http->Post("/Leadwerks/gnet.php", "?opt=add&game=GvB-Rick&server=GvB.game.net");

RakString data;
data = http->Read();
http->HasBadResponse(NULL, &data);

2
RakNet C++ Support / Calling a web service
« on: July 17, 2014, 12:52:32 PM »
Are there any examples on how to call rest web services in C++? Something like: http://myurl/api/GetProduct/2 or something alike?

Also, are these forums even relevant anymore seeing as RakNet was sold and the creator seemed to be pretty much the only one answering questions here anyway :)

3
RakNet C++ Support / _CRT_SECURE_NO_WARNINGS errors
« on: April 27, 2014, 09:26:16 AM »
Getting a bunch of these errors. I see from a previous post these used to be warnings but now with VS 2013 they show up as errors. Where in VS 2013 do I put this _CRT_SECURE_NO_WARNINGS and will it even work considering they are errors now and not warnings?


Error   31   error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.   c:\raknet_pc-4.0802\raknetsrc\ds_table.cpp   99   1   RakNetTest

4
RakNet C++ Support / Re: Notice To Server That Client Received Packet?
« on: February 02, 2013, 09:12:16 AM »
Wouldn't this be blocking then as Send() is async?

5
RakNet C++ Support / Re: Secure only on login
« on: February 02, 2013, 09:08:22 AM »
Oh, so the guid attached to each packet that comes to the server is from the client's RakPeerInterface? I always thought the server assigned this for each connection. Interesting.

Where can I get more info on secure connection? I thought I read somewhere I needed to compile RakNet with some define or something? Do I really need to do that? I already compiled RakNet and would prefer not to have to do all that again.

6
RakNet C++ Support / Re: Secure only on login
« on: January 23, 2013, 08:13:11 AM »
Really? I would have thought for sure the GUID would be different. Why would it stay the same?

7
RakNet C++ Support / Re: Secure only on login
« on: January 19, 2013, 08:13:04 AM »
hmm, I was going to do the hash anyway, but if the wire is sniffed then there are 2 problems pending the hashing algo that plugin uses. I was going to use BCrypt which is a slow hash which prevents brute force hacking of the hashed PW to find the plain text. If the hashing algo used is built for speed (as it seems most are) then it can be brute forced if the wire is hacked to see the plain text PW. That's an issue in the case the user uses this same PW for multiple online systems (like email or banking).

The other issue is for the game at hand, knowing the hashed value is the same as knowing the PW and someone reading the wire transfer could then login as said user with just the hash.

Looks like I might need to make 2 connections, where the first is secure to do the login, and the second isn't, to avoid extra data being sent with game data. Is that possible? I seem to recall to make secure connections you had to compile with a specific define set? Does that make the connections secure for the entire library or is there still a setting I can set to make connections secure.

This is just a pain because currently I am using the GUID RakNet makes per connection to ID everything about the client. I suppose I'll have to instead make a session ID on login, and have the client pass that when the second connection is made to ID said client.

8
RakNet C++ Support / Secure only on login
« on: January 10, 2013, 06:41:21 AM »
Is there a way to only use RakNet secure connection only for my login? Then after that the connection wouldn't be secure and wouldn't incur the extra bytes. In order for me to use the guid on the connection as the ID of the client on the server I'm guessing it would need to be the same rak interface as well?

9
SWIG and C# support / Re: RakNet in WinForms application
« on: February 14, 2012, 11:42:38 AM »
WinForms is a GUI application. Normally when I've used RakNet with C++ we have access to the main loop. In a GUI app there really isn't any main loop since it's event driven and generally hidden from you. So the question is how would we poll RakNet to see if there are messages waiting for us in a GUI event driven application?

Generally in a GUI application one would have events fired for us by the library when data comes in.

10
SWIG and C# support / C# client with C++ server
« on: February 14, 2012, 11:39:35 AM »
Am I able to mix client/server between C# and C++? So can I have a C# client app using RakNet talk to a C++ server app using RakNet?

11
RakNet C++ Support / Re: BitStream not working at all
« on: September 23, 2011, 05:13:08 PM »
I just recently used that tutorial (again) and it worked great. Were you using that exact code or did you modify it in any way? I would for sure use BitStreams over that other method.

Just based on the limited info you posted it would sound to me like maybe something is wrong with the case statement and it's just not hitting where you think it would hit?

If you post the exact code you are using for client and server here I could tell you why it's not working.

12
SWIG and C# support / RakNet in WinForms application
« on: July 07, 2011, 03:06:08 PM »
Since a WinForms application doesn't really give us access to the main loop, what is the best way to use RakNet with a WinForms project? Would it be a timer that is checking for network messages?

13
RakNet C++ Support / int8_t collision with mysql connector c++
« on: May 24, 2011, 11:37:12 PM »
Not sure if you care or not but I found a redefinition error with int8_t in nativetypes.h. I'm using RakNet with MySql connector for C++ and it seems it also does a typedef to make an int8_t type. They both point to the same base type so I just commented out the mysql connector version and it works, but not sure if there is a way to handle that on your end for future builds perhaps.

14
SWIG and C# support / Re: DLL_Swig build error
« on: May 12, 2011, 09:31:38 AM »
I still don't know why you don't pre-build these .NET dll's for people. Make on for 32-bit Windows and one for 64-bit Windows. I have to imagine most of your users would really like the ease of this. There should be no reason why you building these won't work on those versions of Windows.

15
SWIG and C# support / Re: DLL_Swig build error
« on: May 11, 2011, 04:35:32 PM »
It does get outputted to that directory. I am using your download but I'm converting it to VS2010, but I was talking with another guy from these forums and he's doing the same thing but he ends up with your result not mine. He even gave me his interface files and project and I ended up with the same result as I did before.

I understand that the cxx and header should be getting generated from swig and the interface files should be determining how swig creates things and I have used that other guys swig interface files but it keeps doing the same thing for me.

I tried VS Express 2005 and after I got through winsock2.h not being there I was finally able to get things compiled, although the cs files had 1 error in it. I was able to comment out the part with the error but I don't know if that's going to be an issue that will bite me later on.

Pages: [1] 2 3 ... 5