News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

peer-to-peer project

Started by felipe, March 02, 2019, 10:25:57 AM

Previous topic - Next topic

felipe

I have been learning for a while about networking. So today i started to look up the win api that supports peer-to-peer comunications. I liked the Graphing api, it looks simple and it seems to have all what i need to make a simple test aplication. The P2PGraph.dll is in my system (win8.1), this dll is not "included" in the masm sdk's includes, but that's should be no big deal. I have loaded the .dll with LoadLibrary. The problem is that i still need the p2p.h header file, which contains all the definitions for that dll. I needed because the microsoft documentation about the functions used for this dll shows some constants, but their definition (equate value) is not there. As an example PEER_GRAPH_VERSION, i don't know what is that value. I will have no problem to try to convert this p2p.h into a usable p2p.inc and load it to the forum later, but i can't find that p2p.h anywhere in the internet, not even the information of which is the sdk that comes with it. In the documentation of the api of microsoft this dll and related functionallity doesn't appear as deprecated.
Does anyone have some information about this p2p.h or related with this issue? Thanks in advance.  :icon14:

guga

#define PEER_GRAPH_VERSION MAKEWORD (1, 0)


http://denemo.org/~jjbenham/gub/mingw/root/mingw/include/p2p.h

or here for 64 bits

https://github.com/intel/CODK-Z-Flashpack/blob/master/source/libwinpthread/mingw-w64-headers/include/p2p.h

More info:
https://sourceforge.net/projects/mingw-w64/files/

or here a full graph app (Maybe this one best fitĀ“s for your needs)

http://read.pudn.com/downloads184/sourcecode/p2p/866859/C/GraphChat.c__.htm
Coding in Assembly requires a mix of:
80% of brain, passion, intuition, creativity
10% of programming skills
10% of alcoholic levels in your blood.

My Code Sites:
http://rosasm.freeforums.org
http://winasm.tripod.com

felipe

great guga! thanks a lot!  :greenclp:

sinsi

There is a nice website https://www.magnumdb.com/

Example of searching for PEER_GRAPH_VERSION

Name                 Type        Hex value  Source line(s)                                  File path
PEER_GRAPH_VERSION   UInt16      0x0001     #define PEER_GRAPH_VERSION MAKEWORD(1,0)        %ProgramFiles(x86)%\Windows Kits\10\Include\10.0.17763.0\um\p2p.h(197,0)


felipe

Looks promising sinsi but when i search PEER_GRAPH_VERSION in the search box shows no results... :idea:

sinsi

? Not sure why...

https://www.magnumdb.com/search?q=PEER_GRAPH_VERSION

guga

Here using Chrome and Firefox (On PC) works ok.

Did you settled the check boxes ? Like this:



Btw: Excellent site Sinsi. Tks a lot  :t
Coding in Assembly requires a mix of:
80% of brain, passion, intuition, creativity
10% of programming skills
10% of alcoholic levels in your blood.

My Code Sites:
http://rosasm.freeforums.org
http://winasm.tripod.com

BugCatcher

In my Windows 10, I found p2p.h at Program Files(x86)\Windows Kits\10\Include\10.0.17763.0\um

felipe

Yes guga. I have tried with explorer too but no luck yet.  :idea:
BugCatcher thanks! indeed i have it there too!  :icon_mrgreen: