Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DirectPlay8 1

Status
Not open for further replies.

ADoozer

Programmer
Dec 15, 2002
3,487
AU
i was wondering if anyone knew how to change the port number (or if it is actually possible) in the vb_VoiceGroup project included with DX8SDK

i have the project running nicely, but it "seems" to always use port 2302?!? is this a standard port???

any input appreciated!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 
It seems that it is an assigned or registered port...

[tt]
The Well Known Ports are those from 0 through 1023.

The Registered Ports are those from 1024 through 49151

The Dynamic and/or Private Ports are those from 49152 through 65535

binderysupport 2302/tcp Bindery Support
binderysupport 2302/udp Bindery Support
[/tt]

from
Good Luck
 
thnx VB5... believe me, ive read a lot today and your info is completely new to me! have a star!!

however i would still like to here from anybody that has used directplay within VB! (if anybody has)

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 
hmmm... what i meant was (it was very late wen i posted [lol])...

in the EnumHost method of the directplay8peer object, i can specify an IP and give it a port number as well, so im thinking it must also be possible to set a port number!

anyone got any ideas?!?

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 
I have done a little research on by looking in some of my books (you may have this one ) and there are a couple of mentions of enumhost but at my quick glance there did not seem to be any info on how to set the port, but in this book there are 4 chapters devoted to directplay and the last is using directplay voice in your application (chap 24).

Sorry, I have not read all of these books so can't help you much more than the suggestion of buying one of these or some other. Have you searched the web?


Good Luck
 
ive read the documentation in the help files, and the bits i understood didnt contain relevant info, i tried searching for port 2302 (being that this is consistently the port the app uses) in the help files to no avail. all the books i own on DX are C/C+ books so they havent been too helpful, and web searches bring up little to nothing!

im going to pop into town tomorrow and have a squizz at the books u mentioned, the amazon reviews seem good!

with regard to the enum host.. i think that is purely for searching IPs and ports... i have no idea where the method that creates the <insert word i need here> (connectiony thing) is... its buried deep in the code somewhere (if i single step the &quot;create game&quot; button i get stuck in a 5 millisecond loop because its waiting for me to do something!!)

thnx yet again.

thread remains open to all that have dabbled in DX8!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 
Oh, I've played with DX8, but not with the DirectPlay stuff, just DirectDraw and Direct3D
 
yeah... me too... direct3d that is... i struggled with that too. it would seem that DX and VB is a taboo subject... even a google search doesnt turn up much![lol]

have u tried the sample app(vb_voicegroup) that comes with DX8 can u figure out where the port number is set (or how to change it)

like i said, i keep getting trapped in the 5 millisecond loop, ive tried breakpoints on every procedure but its got me confuddled!!!!!

thnx in advance


If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 
strongm, VB5

have u guys tried this app?

u guys seem open for a challenge...

if only u could tell me how to beat the 5 milli loop!!!

big thanx to any and all that can help

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 
ADoozer,

I've played with DirectShow in VB, used it as an MP3 Engine.
Works a dream. (Death to wmp.dll)

Regards,



[yinyang] ¥oshi [yinyang]

-------------------------
&quot;There is No Spoon..&quot;
-------------------------
Programming Outsource:
&quot;I'm an idealist. I don't know where I'm going but I'm on the way.&quot; — Carl Sandburg, 20th-century American poet and writer
 

Well, I have to say &quot;format C:&quot; sucks! Some how I destroyed my registry and now have to finish reloading everything so it will be a couple of more days (at least) before I can take a look at that example project, but as soon as I can I will see what I can come up with or observe.

Good Luck

 
yoshi: cheers bub but again im looking for directplay.

VB5: format c:\ .... no .... seriously.... why?!?!?!?

look forward to your input.... ive learnd(is that a word?!?!) that the program uses a set port (the 2302 one) how true this is i dont know!

as ive said... i look forward to you input!!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 

Yeah, don't know what I did but the registry was so corrupt that I could not use windows. It's a good thing that I have most everything installed on another drive. It took less than 5 minutes to install VS6.0 Ent with MSDN and SP5 because most of the files are still on the other drive and only a minute for office. Now for all of the SDK's and such.

It looks like it will be some time next week before I will be able to look at it...

A downloading I will go, A downloading I will go, hi ho merry 'O, A downloading I will gooooo...

(yeah I know that was bad, very bad, and way off key to boot)

:)

 

Ok, you are saying you get caught in a 5 millisecond sleep Doevents loop. If I have everything correct this loop is in the DPlayConnect form in the StartWizard Function. If this is so then it looks to me like this is the main wait loop for events to occur. If you place a breakpoint after it on the &quot;If mlLobbyClientID <> 0 Then&quot; line you will find that the program breaks when you either click on cancel or the forms close button. Then if you walk through the remaining code you will see that it is mostly cleanup code to remove the objects from memory.

Now for as to what or where the port number is set I have not found this but what I have found from the help files is 4 listings if you search for &quot;directplay port number&quot;. The first 3 show some promise and may lead you in the right direction. (Make sure you have the DirectX help file up.)

Sorry I couldn't help more.

Good Luck

 
here is what i think ive figured out!!!

the address is set somehow within the DirectPlay8Address object (der!!!)

and this is most likely done with the

BuildFromURL method...

however the bit after that (sourceURL) i get confused

dlNotify.dplMsgCon.AddressSenderUrl

where &quot;dlNotify As DxVBLibA.DPL_MESSAGE_CONNECT&quot;

and this is where the help files get un-helpful!!

the alternative to the dlNotify bit is

moHosts(lstGames.ItemData(lstGames.ListIndex)).Address

but this seems to take place in the join subs!

gonna do a little more digging but in the meantime if anyone can shed any more light, it will be greatly appreciated!

thnx in advance!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 
hmmm... or not!

since the BuildFromURL code is never run through when creating a game.

damn this is annoying!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top