Advertisement Jump to content
  • Advertisement

emileej

Member
  • Content Count

    505
  • Joined

  • Last visited

Community Reputation

130 Neutral

About emileej

  • Rank
    Advanced Member
  1. Who said XCode? Oh - I did :)
  2. Hmm I just found and corrected some simple errors, but still I get this error message: kernel extension Test.kext has problems: Validation failures { "Info dictionary missing required property/value" = ( "CFBundlePackageType" "CFBundleVersion" ) } Missing dependencies { "com.apple.kernel.mach" = "A valid compatible version of this dependency cannot be found" "com.apple.kernel.iokit" = "A valid compatible version of this dependency cannot be found" "com.apple.kernel.libkern" = "A valid compatible version of this dependency cannot be found" }
  3. Hey! I need to create a device driver on OS X and I've looked at the IOKit for this project. I found this tutorial: Hello I/O Kit: Creating a Device Driver With Xcode The only problem is that this tutorial is aimed at XCode whereas I, only running on Panther, am using Project Builder. When I try to load my kext file I get this error: kextload: kext /tmp/Test.kext is not valid can't add kernel extension Test.kext (not a kernel extension) (run kextload on this kext with -t for diagnostic output) I follow instructions given in the error message - resulting in this output: can't add kernel extension Test.kext (validation error) (run kextload on this kext with -t for diagnostic output) kernel extension Test.kext has problems: Validation failures { "Info dictionary missing required property/value" = ( "CFBundlePackageType" "CFBundleVersion" "IOKitPersonalities:HelloIOKit:IOProviderClass" ) } Missing dependencies { "com.apple.kernel.mach" = "A valid compatible version of this dependency cannot be found" "com.apple.kernel.iokit" = "A valid compatible version of this dependency cannot be found" "com.apple.kernel.libkern" = "A valid compatible version of this dependency cannot be found" } Anyone have a solution to this problem or perhaps another tutorial or working source?
  4. emileej

    Firewall programming

    In my case the last is the most relevant - however I am targeting a linux platform. I know that I'm reinventing the wheel here, but its as much part of a learning process as a production.
  5. I would like to create my own network firewall application, but I can't find any information as to how the firewall sends and recieves packets - is it recievine on one port and sending on the ports specified by the clients? And if so then how is the layout of the client packets and which port are they sent to?
  6. emileej

    Gateway programming

    If people don't know the ansvers to those questions then maybe you have some relevant links? I can't find any.
  7. emileej

    From C# to C++

    Although I have never had a look at C# I believe I could contribute a little to this debate. I have been programming C++ for quite a while when I recently decided to try out the Cocoa api (OS X system api). The standard language for this api (as I understand it) is Objective-c. Objective-c offers a whole lot of clever memory operations deeply integrated with the Cocoa api (again - this is based on what I've read so far). Therefore I am up untill now counting on using a merge of Objective-c and C++ called (tadaaa!) Objective-C++ which (in my opinion) offers the best of both worlds. This way I hope to create highly integrated (Objective-c integration) and fast (C++ memory routines) applications at a reasonable pace (due to my C++ experience). Point: Is it not possible to mix C# and C++ the same way? C## or something like that? :)
  8. emileej

    Gateway programming

    I had imagined that all packets would just be sent to the gateway which would then either reject them or pass them on. If this is not the case then how is it done - what happens when a computer on a network with a gateway sends a packet?
  9. emileej

    Gateway programming

    Nobody in here have any experience in that field?
  10. emileej

    Gateway programming

    As much as this is a problem solution it is also a learning proccess. I would like to program a gateway - preferrably platform independant.
  11. My goal is to program an application that will monitor and limit the internet access from a LAN. I have been programming network applications before, but I do not know that much about network 'hardware'/designs. Anyways I have assumed that what I will need is to set up a server to act as gateway on which my program will run. If that is indeed so then how will the clients be transmitting their packets and which messages can I return as a gateway (for instance when a user has broken his quota and I am rejecting his packet)?
  12. emileej

    [web] File upload problem

    Try this correction: <form method="post" action="upload.php" enctype="multipart/form-data"> <input type=hidden name=cat value=a> <input type=hidden name=numup value=1> <input type=hidden name=MAX_FILE_SIZE value=20000> <input type=file name=up0> <input type=submit value=UPLOAD> </form>
  13. I know I have read about this being done, perhaps even here, I just can't find it. :(
  14. Quote:Original post by petewood Quote:Original post by Lord Bart Advantage: it works on all C/C++ compilers or more correctly the preprocessor. Disadvantage: you still OPEN and have to READ the include file to check for the include guard. If you know that it's a waste of time opening the file and reading it more than once, the compiler writer will also know it's a waste of time. They won't open and read it more than once. Agreed. Quote:Original post by Lord Bart #ifndef NAME_OF_INCLUDED_DEFINE #include "name_of_inlcude_file.h" #endif I can only see the usefullness of this three lined code repetition if your statement on re-parsing is true which I find hard to believe except for very old preprocessors. Again I wish to draw the attention to the usefullness of converting debugged code into libraries.
  15. The idea was to have the compiled class in an external file, copy it to the memory and then use it. I have used dll's many times before but thats now what I want in this case.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!