LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-16-2006, 08:49 AM   #1
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Rep: Reputation: 30
C# reverse output?


hello,
if I've done

Code:
PortAccess.Output(888, 0x1);
or
Code:
PortAccess.Output(888, 0x2);
and I want to verify what I've done, so how can I check, what was outputted at the last time to port 888?


Thanks!
 
Old 05-17-2006, 02:25 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i'm am not familiar with port programming under c# but i'd be fairly sure that this is impossible. it's your own responsibility to track this kind of data, maybe using a history buffer to hold old outputs. indeed you might want to factor out the writing and buffering to a seperate function, so your main body of code just calls a function with a single value, or writes to a buffer and a dedicated function handles it all.
 
Old 05-17-2006, 10:31 AM   #3
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by acid_kewpie
i'm am not familiar with port programming under c# but i'd be fairly sure that this is impossible. it's your own responsibility to track this kind of data, maybe using a history buffer to hold old outputs. indeed you might want to factor out the writing and buffering to a seperate function, so your main body of code just calls a function with a single value, or writes to a buffer and a dedicated function handles it all.
yes.
re thought about it, the solution is to get a variable changed whenever output has changed, so the variable will hold the last output.


Thanks anyways!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse Lookups abhijeetudas Linux - Networking 1 10-18-2005 01:20 PM
Reverse DNS Webbie Linux - Networking 4 10-10-2005 07:49 PM
Reverse DNS davespink Linux - Networking 2 02-27-2005 06:44 PM
Via AC'97 5.1 Optical Output or Audigy 4.1 Output Nza Fedora 3 06-01-2004 07:49 AM
the sound gives output when using mic but no output when run a music file medo Debian 0 04-19-2004 07:17 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration